SELinux-Refpolicy Archive on
 help / color / Atom feed
* [RFC] refining systemd mountpoints
@ 2020-01-09 21:06 Chris PeBenito
  2020-01-09 21:42 ` Dominick Grift
  0 siblings, 1 reply; 5+ messages in thread
From: Chris PeBenito @ 2020-01-09 21:06 UTC (permalink / raw)
  To: refpolicy

I'd like to refine how the policy handles systemd's mounton so that it 
works similar to how we manage mountpoints for mount_t. Since systemd 
can be made to mount over just about anything, I'm looking at adding a 
new conditional that would allow init_t to mounton 
non_security_file_type, and then an interface like files_mountpoint().

The question is for the implementation of the interface; I see two 
options, either the interface allows mounton for all file-like classes, 
or the classes are specified as a parameter:

attribute init_mountpoint_type;
allow init_t init_mountpoint_type:dir_file_class_set mounton;

typeattribute $1 init_mountpoint_type;


allow init_t $1:$2 mounton;

I like the first option because it is clearer since you can see the 
mounton in init.te, but that is excessive access.  The second option 
could be made to look like the first option, but it would need several 
attributes and interfaces, e.g. init_dir_mountpoint_type, 
init_file_mountpoint_type, etc. which isn't so desirable.

Any thoughts on this?

Chris PeBenito

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 21:06 [RFC] refining systemd mountpoints Chris PeBenito
2020-01-09 21:42 ` Dominick Grift
2020-01-12 17:41   ` Nicolas Iooss
2020-01-13  9:42   ` Dominick Grift
2020-01-13 10:18     ` Dominick Grift

SELinux-Refpolicy Archive on

Archives are clonable:
	git clone --mirror selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ \
	public-inbox-index selinux-refpolicy

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone