Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93985 - SELinux policy eclass support for miscelaneous contexts files
Summary: SELinux policy eclass support for miscelaneous contexts files
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Chris PeBenito (RETIRED)
URL: http://cvs.tuxedo-es.org/cgi-bin/view...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 12:30 UTC by Lorenzo Hernández García-Hierro
Modified: 2005-12-15 12:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Hernández García-Hierro 2005-05-25 12:30:56 UTC
Hi,

In order to allow those ebuilds inheriting the selinux-policy eclass to install miscelaneous context files (ie. dbus_contexts from dbus policy files), we need to specify a new variable in the eclass which installs (if defined) such miscelaneous/specific contexts files into /etc/security as it's currently done:

The code to add is pretty simple and clean:

	if [ -n "${CONTEXTSMISC}" ]; then
	        debug-print "CONTEXTSMISC is \"${CONTEXTSMISC}\""
	        insinto /etc/security
	        doins ${CONTEXTSMISC} || die
	fi

A modified version is available at http://cvs.tuxedo-es.org/cgi-bin/viewcvs.cgi/gentoo_sec-policy/selinux-policy.eclass.

BTW, this is one of the steps needed to introduce stable policies for Desktop
users in a fancy manner, and in the future it will make the maintenance work easier for sure.

Thanks in advance.

Cheers,
Lorenzo.
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2005-12-15 12:39:27 UTC
will be superseded by selinux-policy-2.eclass which will have loadable module
support.