selinux-refpolicy/policy/modules/system/getty.fc
Nicolas Iooss 69c742f11b
Support systems with a single /usr/bin directory
On systems such as Arch Linux, all programs which are usually located in
/bin, /sbin, /usr/bin and /usr/sbin are present in /usr/bin and the
other locations are symbolic links to this directory.  With such a
configuration, the file contexts which define types for files in
/bin, /sbin and /usr/sbin need to be duplicated to provide definitions
for /usr/bin/...

As the "/bin vs. /usr/bin" part of the needed definitions has already
been done with the "usr merge" patches, the next step consists in
duplicating file contexts for /usr/sbin. This is what this patch does
for all modules which are not in contrib.

This is the second iteration of an idea I have previously posted on
http://oss.tresys.com/pipermail/refpolicy/2017-March/009176.html
2017-04-15 20:49:07 +02:00

15 lines
643 B
Plaintext

/etc/mgetty(/.*)? gen_context(system_u:object_r:getty_conf_t,s0)
/run/mgetty\.pid.* -- gen_context(system_u:object_r:getty_runtime_t,s0)
/run/agetty\.reload -- gen_context(system_u:object_r:getty_runtime_t,s0)
/usr/bin/.*getty -- gen_context(system_u:object_r:getty_exec_t,s0)
/usr/sbin/.*getty -- gen_context(system_u:object_r:getty_exec_t,s0)
/var/log/mgetty\.log.* -- gen_context(system_u:object_r:getty_log_t,s0)
/var/log/vgetty\.log\..* -- gen_context(system_u:object_r:getty_log_t,s0)
/var/spool/fax(/.*)? gen_context(system_u:object_r:getty_runtime_t,s0)
/var/spool/voice(/.*)? gen_context(system_u:object_r:getty_runtime_t,s0)