All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/1] Support pam_limits for inetd
@ 2011-11-15  9:53 Sven Vermeulen
  2012-02-08 20:37 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Vermeulen @ 2011-11-15  9:53 UTC (permalink / raw)
  To: refpolicy

The inetd daemon is PAM-aware and, given pam_limits, is able to set resource
limits.

This patch grants it the sys_resource privilege as well as setrlimit.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
 inetd.te |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/inetd.te b/inetd.te
index 6e82c4c..e341ab6 100644
--- a/inetd.te
+++ b/inetd.te
@@ -38,9 +38,9 @@ ifdef(`enable_mcs',`
 # Local policy
 #
 
-allow inetd_t self:capability { setuid setgid };
+allow inetd_t self:capability { setuid setgid sys_resource };
 dontaudit inetd_t self:capability sys_tty_config;
-allow inetd_t self:process { setsched setexec };
+allow inetd_t self:process { setsched setexec setrlimit };
 allow inetd_t self:fifo_file rw_fifo_file_perms;
 allow inetd_t self:tcp_socket create_stream_socket_perms;
 allow inetd_t self:udp_socket create_socket_perms;
-- 
1.7.3.4

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

end of thread, other threads:[~2012-02-08 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-15  9:53 [refpolicy] [PATCH 1/1] Support pam_limits for inetd Sven Vermeulen
2012-02-08 20:37 ` Christopher J. PeBenito

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.