/run types
typealias screen_runtime_t alias screen_var_run_t;
type vmware_host_pid_t alias vmware_var_run_t; typealias boot_t alias bootloader_run_t;
typealias acpid_var_run_t alias apmd_var_run_t;
type arpwatch_pid_t alias arpwatch_var_run_t;
type lircd_var_run_t alias lircd_sock_t;
type munin_var_run_t alias lrrd_var_run_t;
typealias samba_var_run_t alias { nmbd_var_run_t smbd_var_run_t }; typealias vnstatd_pid_t alias vnstatd_var_run_t; typealias exim_pid_t alias exim_var_run_t;
typealias irqbalance_pid_t alias irqbalance_var_run_t; typealias ntpd_pid_t alias ntpd_var_run_t;
type policykit_var_run_t alias polkit_var_run_t; typealias clamd_var_run_t alias clamd_sock_t;
type getty_runtime_t alias getty_var_run_t;
typealias mount_runtime_t alias mount_var_run_t; iptables_runtime_t alias iptables_var_run_t;
type mdadm_var_run_t alias mdadm_map_t;
typealias restorecond_run_t alias restorecond_var_run_t;
We have the above aliases in the current git policy. The current type names include *_pid_t, *_var_run_t, and *_runtime_t.
We have 284 other type definitions that include _run_t, of which 274 are _var_run_t.
Futher grepping found a few other instances of *_pid_t and *_runtime_t.
By far the most common (and most obviously wrong) is *_var_run_t. When using systemd (and also non-systemd on systems like Debian) a tmpfs on /run is used and /var/run is a symlink.
I think we should change this to use a common name. If this idea is generally accepted I'll submit a patch changing all instances of *_var_run_t, *_pid_t, and *_runtime_t to *_run_t with aliases for the old names.
What do you think?
Signature · 2 lines
My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/
Quoted 32 lines · Russell Coker
typealias
screen_runtime_taliasscreen_var_run_t;
typevmware_host_pid_taliasvmware_var_run_t; typealiasboot_taliasbootloader_run_t;
typealiasacpid_var_run_taliasapmd_var_run_t;
typearpwatch_pid_taliasarpwatch_var_run_t;
typelircd_var_run_taliaslircd_sock_t;
typemunin_var_run_taliaslrrd_var_run_t;
typealiassamba_var_run_talias {nmbd_var_run_tsmbd_var_run_t}; typealiasvnstatd_pid_taliasvnstatd_var_run_t; typealiasexim_pid_taliasexim_var_run_t;
typealiasirqbalance_pid_taliasirqbalance_var_run_t; typealiasntpd_pid_taliasntpd_var_run_t;
typepolicykit_var_run_taliaspolkit_var_run_t; typealiasclamd_var_run_taliasclamd_sock_t;
typegetty_runtime_taliasgetty_var_run_t;
typealiasmount_runtime_taliasmount_var_run_t;iptables_runtime_taliasiptables_var_run_t;
typemdadm_var_run_taliasmdadm_map_t;
typealiasrestorecond_run_taliasrestorecond_var_run_t;We have the above aliases in the current git policy. The current type names include
*_pid_t,*_var_run_t, and*_runtime_t.We have 284 other type definitions that include
_run_t, of which 274 are_var_run_t.Futher grepping found a few other instances of
*_pid_tand*_runtime_t.By far the most common (and most obviously wrong) is
*_var_run_t. When using systemd (and also non-systemd on systems like Debian) a tmpfs on /run is used and/var/runis a symlink.
Quoted 5 lines
I think we should change this to use a common name. If this idea is generally accepted I'll submit a patch changing all instances of
*_var_run_t,*_pid_t, and*_runtime_tto*_run_twith aliases for the old names.What do you think?
I'd prefer to standardize on *_runtime_t as that doesn't have the implicit baggage of *_run_t (it's more than pid files).
Signature · 1 line
Chris PeBenito