fb230fe709
- nscd profile: add missing permissions and deny capability block_suspend (bnc#807104) Please also add this patch to openSUSE 12.3 The patch only adds permissions, which means it can't break anything. Even "deny capability block_suspend" doesn't take away any permissions (everything that is not allowed is denied by default). The deny rule just disables the logging for capability block_suspend. OBS-URL: https://build.opensuse.org/request/show/157409 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=33
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
=== modified file 'profiles/apparmor.d/usr.sbin.nscd'
|
|
--- profiles/apparmor.d/usr.sbin.nscd 2011-08-23 22:57:42 +0000
|
|
+++ profiles/apparmor.d/usr.sbin.nscd 2013-03-05 17:45:49 +0000
|
|
@@ -16,6 +16,7 @@
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/ssl_certs>
|
|
|
|
+ deny capability block_suspend,
|
|
capability net_bind_service,
|
|
capability setgid,
|
|
capability setuid,
|
|
@@ -31,9 +32,9 @@
|
|
/{,var/}run/.nscd_socket wl,
|
|
/{,var/}run/avahi-daemon/socket w,
|
|
/{,var/}run/nscd/ rw,
|
|
- /{,var/}run/nscd/db* wl,
|
|
+ /{,var/}run/nscd/db* rwl,
|
|
/{,var/}run/nscd/socket wl,
|
|
- /var/{cache,run}/nscd/{passwd,group,services,hosts} rw,
|
|
+ /var/{cache,run}/nscd/{passwd,group,services,hosts,netgroup} rw,
|
|
/{,var/}run/{nscd/,}nscd.pid rwl,
|
|
/var/log/nscd.log rw,
|
|
@{PROC}/[0-9]*/fd/ r,
|
|
@@ -41,6 +42,7 @@
|
|
@{PROC}/[0-9]*/maps r,
|
|
@{PROC}/[0-9]*/mounts r,
|
|
@{PROC}/filesystems r,
|
|
+ @{PROC}/sys/vm/overcommit_memory r,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include <local/usr.sbin.nscd>
|
|
|