Bug 795966 - pki-selinux policy is kind of a mess
Summary: pki-selinux policy is kind of a mess
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pki-core
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthew Harmsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-21 21:43 UTC by Daniel Walsh
Modified: 2013-07-04 06:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-04 06:38:35 UTC
Type: ---


Attachments (Terms of Use)
Please apply this patch and work with Miroslav Grepl to clean up policy. (16.44 KB, patch)
2012-02-21 21:43 UTC, Daniel Walsh
no flags Details | Diff
This is an audit.log from F17 showing the current policy has lots of problems. (244.27 KB, text/plain)
2012-02-21 21:52 UTC, Daniel Walsh
no flags Details
audit logs for above avc messages (23.36 KB, text/plain)
2012-03-28 15:17 UTC, Ade Lee
no flags Details

Description Daniel Walsh 2012-02-21 21:43:19 UTC
Created attachment 564786 [details]
Please apply this patch and work with Miroslav Grepl to clean up policy.

Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2012-02-21 21:52:40 UTC
Created attachment 564788 [details]
This is an audit.log from F17 showing the current policy has lots of problems.

java_exec_t as a label is disappearing in F17.  We might need to better understand what is going on with the transitions.

Comment 2 Ade Lee 2012-02-24 14:18:42 UTC
Pushed to master and dogtag 9

Comment 3 Ade Lee 2012-02-24 16:05:04 UTC
reopening - there are more avc's

[root@mpgtest scripts]# audit2allow -R -i /var/log/audit/audit.log 

require {
	type unlabeled_t;
	type lib_t;
	type consoletype_exec_t;
	type systemd_tmpfiles_t;
	type hostname_exec_t;
	type sysctl_kernel_t;
	type hugetlbfs_t;
	type pki_ca_t;
	class capability { setuid chown setgid fowner audit_write dac_override };
	class dir { read search open getattr };
	class file { execute read open execute_no_trans };
	class netlink_audit_socket { nlmsg_relay create };
}

#============= pki_ca_t ==============
allow pki_ca_t consoletype_exec_t:file { read execute open execute_no_trans };
allow pki_ca_t hostname_exec_t:file { read execute open execute_no_trans };
allow pki_ca_t hugetlbfs_t:file read;
allow pki_ca_t lib_t:file execute_no_trans;
allow pki_ca_t self:capability { setuid chown setgid fowner audit_write dac_override };
allow pki_ca_t self:netlink_audit_socket { nlmsg_relay create };
allow pki_ca_t sysctl_kernel_t:dir search;
allow pki_ca_t sysctl_kernel_t:file { read open };

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t unlabeled_t:dir { read getattr open search };

Comment 4 Miroslav Grepl 2012-02-27 09:15:45 UTC
unlabeled_t looks like an update issue. Could you attach AVC messages for these rules?

I will clean up your policy with this log.

Comment 5 Fedora Admin XMLRPC Client 2012-03-07 00:28:56 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Ade Lee 2012-03-28 15:17:12 UTC
Created attachment 573371 [details]
audit logs for above avc messages

Removed the f17 patch and obtained raw audit log messages on f17.
Attached.

Comment 7 Fedora End Of Life 2013-07-04 06:19:12 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Miroslav Grepl 2013-07-04 06:38:35 UTC
We have fixes in F18+.


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