dev_filesystem policy
Subsystems (2)
To use tmpfs for /dev we need to allow all device types to associate with the tmpfs. To make this easier I have attached a patch to give all types that may be used for objects under /tmp the attribute dev_filesystem.
I am still working on getting the tmpfs to work correctly, but this is a necessary first step.
Steve, if you don't like the name dev_filesystem then please feel free to change it.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
attrib.te renamed from usr/src/se/policy/attrib.te +4 -0
@@ -205,6 +205,10 @@ # The device_type attribute identifies all types assigned to device nodes attribute device_type; +# The dev_filesystem attribute identifies all types that may be assigned to +# files, sockets, or pipes under /dev. +attribute dev_filesystem; + # The sysadmfile attribute identifies all types assigned to files # that should be completely accessible to administrators. It is used # in TE rules to grant such access for administrator domains.
domains/program/init.te renamed from usr/src/se/policy/domains/program/init.te +1 -1
@@ -18,7 +18,7 @@ role system_r types init_t; uses_shlib(init_t); type init_exec_t, file_type, sysadmfile, exec_type; -type initctl_t, file_type, sysadmfile; +type initctl_t, file_type, sysadmfile, dev_filesystem; # for init to determine whether SE Linux is active so it can know whether to # activate it
domains/program/syslogd.te renamed from usr/src/se/policy/domains/program/syslogd.te +1 -1
@@ -25,7 +25,7 @@ r_dir_file(syslogd_t, sysfs_t) -type devlog_t, file_type, sysadmfile; +type devlog_t, file_type, sysadmfile, dev_filesystem; # if something can log to syslog they should be able to log to the console allow privlog console_device_t:chr_file { ioctl read write getattr };
domains/program/unused/lpd.te renamed from usr/src/se/policy/domains/program/unused/lpd.te +1 -1
@@ -22,7 +22,7 @@ r_dir_file(lpd_t, fonts_t) -type printer_t, file_type, sysadmfile; +type printer_t, file_type, sysadmfile, dev_filesystem; type printconf_t, file_type, sysadmfile; # Type for files in /usr/share/printconf.
domains/program/unused/lvm.te renamed from usr/src/se/policy/domains/program/unused/lvm.te +1 -1
@@ -16,7 +16,7 @@ # type lvm_vg_t, file_type, sysadmfile; type lvm_metadata_t, file_type, sysadmfile; -type lvm_control_t, file_type, device_type; +type lvm_control_t, file_type, device_type, dev_filesystem; etcdir_domain(lvm) allow lvm_t var_t:dir search; lock_domain(lvm)
domains/program/unused/vmware.te renamed from usr/src/se/policy/domains/program/unused/vmware.te +1 -1
@@ -27,7 +27,7 @@ type vmware_user_exec_t, file_type, exec_type; # Type for vmware devices. -type vmware_device_t, file_type, device_type; +type vmware_device_t, file_type, device_type, dev_filesystem; # Type for files in /var/run when a user starts VMWare type vmware_user_var_run_t, file_type, pidfile;
domains/program/unused/watchdog.te renamed from usr/src/se/policy/domains/program/unused/watchdog.te +1 -1
@@ -10,7 +10,7 @@ # daemon_domain(watchdog, `, privmail') -type watchdog_device_t, file_type, device_type; +type watchdog_device_t, file_type, device_type, dev_filesystem; log_domain(watchdog)
types/device.te renamed from usr/src/se/policy/types/device.te +33 -33
174 lines not on this page · raw message
types/devpts.te renamed from usr/src/se/policy/types/devpts.te +1 -1
@@ -10,7 +10,7 @@ # # ptmx_t is the type for /dev/ptmx. # -type ptmx_t, file_type, sysadmfile, device_type; +type ptmx_t, file_type, sysadmfile, device_type, dev_filesystem; # # devpts_t is the type of the devpts file system and
Merged.
Though after consulting with Steve, went with the attribute name dev_fs.
Quoted 10 lines · Russell Coker
To use tmpfs for /dev we need to allow all device types to associate with the tmpfs. To make this easier I have attached a patch to give all types that may be used for objects under /tmp the attribute
dev_filesystem.I am still working on getting the tmpfs to work correctly, but this is a necessary first step.
Steve, if you don't like the name
dev_filesystemthen please feel free to change it.
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.