Bug 1287324 - named-pkcs11 runs unconfined
named-pkcs11 runs unconfined
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
Unspecified Unspecified
high Severity high
: ---
: ---
Assigned To: Miroslav Grepl
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2015-12-01 19:06 EST by DaveG
Modified: 2016-07-19 16:23 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-19 16:23:32 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Raw audit AVC (1.62 KB, text/plain)
2015-12-01 19:06 EST, DaveG
no flags Details

  None (edit)
Description DaveG 2015-12-01 19:06:00 EST
Created attachment 1101144 [details]
Raw audit AVC

Description of problem:

"Standard" named runs confined while named-pkcs11 (required by freeipa) runs unconfined.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

1. Install bind-pkcs11 and start named-pkcs11.service
2. ps -efZ | grep named

Actual results:

system_u:system_r:unconfined_service_t:s0 named 901 1  0 12:24 ?       00:00:00 /usr/sbin/named-pkcs11 -u named

Expected results:

system_u:system_r:named_t:s0    named     2607     1  0 23:06 ?        00:00:00 /usr/sbin/named-pkcs11 -u named

Additional info:

Tried the "standard" policy but it will need work.

chcon -t named_exec_t /usr/sbin/named-pkcs11
setenforce 0
systemctl restart named-pkcs11
ps -efZ | grep named (see expected, above)
grep named-pkcs11 /var/log/audit/audit.log | audit2allow

#============= named_t ==============

#!!!! This avc can be allowed using the boolean 'named_tcp_bind_http_port'
allow named_t http_port_t:tcp_socket name_bind;
allow named_t ipa_var_lib_t:dir read;
allow named_t ipa_var_lib_t:file { read write getattr open lock };

named-pkcs11 listens on (gss-http).
File access AVC relate to /var/lib/ipa/dnssec/tokens/...
Attached: grep named-pkcs11 /var/log/audit/audit.log | grep avc
Comment 1 Fedora End Of Life 2016-07-19 16:23:32 EDT
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.