diff options
Diffstat (limited to 'nscd/selinux.c')
-rw-r--r-- | nscd/selinux.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nscd/selinux.c b/nscd/selinux.c index 6cbcbea19c..9a167ec14d 100644 --- a/nscd/selinux.c +++ b/nscd/selinux.c @@ -368,6 +368,14 @@ nscd_request_avc_has_perm (int fd, request_type req) goto out; } +#ifndef NSCD__GETSERV + if (perms[req] == 0) + { + dbg_log (_("compile-time support for database policy missing")); + goto out; + } +#endif + rc = avc_has_perm (ssid, tsid, SECCLASS_NSCD, perms[req], &aeref, NULL) < 0; out: |