#431 Need to call restorecon on top level logdir
Closed: Fixed None Opened 11 years ago by nkinder.

When creating a new CA instance using pkispawn, an AVC is encountered due to an incorrectly labelled log directory (/var/log/pki). We have a proper fcontext rule in the policy to label /var/log/pki as pki_var_log_t, but we need to explicitly call restorecon on /var/log/pki from pkispawn. Here is the AVC message:

type=AVC msg=audit(1354161214.955:334): avc: denied { write } for pid=3672 comm="useradd" path="/var/log/pki/pki-ca-spawn.20121128225334.log" dev="dm-1" ino=5707 scontext=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file


cb3d05b1225137f9a54952045dace4fc1f9a99b8

Metadata Update from @nkinder:
- Issue assigned to mharmsen
- Issue set to the milestone: 10.0.0-0.X.rc1

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1002

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata