All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH] Allow getty the sys_admin capability
@ 2016-03-04  2:05 Luis Ressel
  2016-03-04 13:11 ` Christopher J. PeBenito
  0 siblings, 1 reply; 12+ messages in thread
From: Luis Ressel @ 2016-03-04  2:05 UTC (permalink / raw)
  To: refpolicy

It's required for agetty on kernels with a recent grsecurity patchset.
(The denial itself has been showing up for quite some time, but it
hasn't had any obvious ill effects until recently.)
---
 policy/modules/system/getty.te | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te
index f6743ea..80fec66 100644
--- a/policy/modules/system/getty.te
+++ b/policy/modules/system/getty.te
@@ -33,7 +33,7 @@ files_pid_file(getty_var_run_t)
 #
 
 # Use capabilities.
-allow getty_t self:capability { dac_override chown setgid sys_resource sys_tty_config fowner fsetid };
+allow getty_t self:capability { dac_override chown setgid sys_admin sys_resource sys_tty_config fowner fsetid };
 dontaudit getty_t self:capability sys_tty_config;
 allow getty_t self:process { getpgid setpgid getsession signal_perms };
 allow getty_t self:fifo_file rw_fifo_file_perms;
@@ -102,11 +102,6 @@ ifdef(`distro_gentoo',`
 	sysnet_dns_name_resolve(getty_t)
 ')
 
-ifdef(`distro_redhat',`
-	# getty requires sys_admin #209426
-	allow getty_t self:capability sys_admin;
-')
-
 ifdef(`distro_ubuntu',`
 	optional_policy(`
 		unconfined_domain(getty_t)
-- 
2.7.2

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

end of thread, other threads:[~2016-03-07 15:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-04  2:05 [refpolicy] [PATCH] Allow getty the sys_admin capability Luis Ressel
2016-03-04 13:11 ` Christopher J. PeBenito
2016-03-04 15:54   ` Dominick Grift
2016-03-05 12:18     ` Nicolas Iooss
2016-03-05 13:33       ` Jason Zaman
2016-03-05 13:33       ` Dominick Grift
2016-03-05 14:38       ` Luis Ressel
2016-03-07 15:02         ` Christopher J. PeBenito
2016-03-05 15:55   ` Luis Ressel
2016-03-05 16:15     ` Jason Zaman
2016-03-05 16:43       ` Luis Ressel
2016-03-05 17:11         ` Nicolas Iooss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.