Skip to contentSkip to conversation

Support pam_limits for inetd

PATCH New Sven Vermeulen 2 participants 2 messages Nov 15, 2011 – Feb 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support pam_limits for inetd

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.

---
 inetd.te |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
inetd.te +2 -2
index 6e82c4c..e341ab6 100644
@@ -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;
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Support pam_limits for inetd

Quoted 4 lines · Sven Vermeulen

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.

Merged.

Quoted 21 lines
---
 inetd.te |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
inetd.te +2 -2
index 6e82c4c..e341ab6 100644
@@ -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;
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com