Skip to contentSkip to conversation

modifications to cups policy (maybe debian specific)

DISCUSSION Luke Kenneth Casson Leighton 2 participants 3 messages Jul 28, 2004 – Jul 29, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

FHS policy violation in cupsys daemon where certs were stored in /etc/cups has been fixed - in debian version 1.1.20final+rcSomething.

i added the following, also removing the /etc/cups/certs references which are set to cupsd_rw_etc_t.

	/var/lib/cups/certs		-d	system_u:object_r:cupsd_var_t
	/var/lib/cups/certs/.*	--	system_u:object_r:cupsd_var_t

i also added the following, but i did NOT remove or try to remove the allow for cupsd_t to write to cupsd_rw_etc_t in case there are other things going on.

	type cupsd_var_t, file_type, sysadmfile, usercanread;
	file_type_auto_trans(cupsd_t, var_lib_t, cupsd_var_t, file)
	allow cupsd_t cupsd_var_t:dir { setattr rw_dir_perms };

these are the minimum requirements to Get It Working (tm) and it's probably not a good idea to remove the write-perms to etc_rw_t for a while until people have thought to have completely upgraded.

unless it is thought to be sensible to add in a dependency of policy 1.15(?) (16?) on cupsys1.1.20finalrcN but of course that means you _must_ install cupsys1.1.20finalrcN so probably not a good idea.

so, how is package updating / changes to be handled?

* detect versions of <package> and install different policy files?

* split out policy files into their own packages, and then have these packages depend on selinux-policy-default and also on the correct version of the package for which they are relevant?

* leave it, it's not really that crucial: people can just... upgrade to latest, and Like It.

* other.

l.

Signature · 14 lines
-- 
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 8 lines · Luke Kenneth Casson Leighton

FHS policy violation in cupsys daemon where certs were stored in /etc/cups has been fixed - in debian version 1.1.20final+rcSomething.

i added the following, also removing the /etc/cups/certs references which are set to cupsd_rw_etc_t.

	/var/lib/cups/certs		-d	system_u:object_r:cupsd_var_t
	/var/lib/cups/certs/.*	--	system_u:object_r:cupsd_var_t
/var/lib/cups/certs     -d      system_u:object_r:cupsd_rw_etc_t
/var/lib/cups/certs/.*  --      system_u:object_r:cupsd_rw_etc_t

Add the above to cups.fc and it should be fine.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 7 lines · Russell Coker
Quoted 6 lines · Luke Kenneth Casson Leighton

FHS policy violation in cupsys daemon where certs were stored in /etc/cups has been fixed - in debian version 1.1.20final+rcSomething.

i added the following, also removing the /etc/cups/certs references which are set to cupsd_rw_etc_t.

Quoted 7 lines
Quoted 2 lines
	/var/lib/cups/certs		-d	system_u:object_r:cupsd_var_t
	/var/lib/cups/certs/.*	--	system_u:object_r:cupsd_var_t
/var/lib/cups/certs     -d      system_u:object_r:cupsd_rw_etc_t
/var/lib/cups/certs/.*  --      system_u:object_r:cupsd_rw_etc_t

Add the above to cups.fc and it should be fine.

... yes... i think you're right. my brain thought it wanted to remove cupsd_rw_etc_t but i don't think that's possible because cupsd writes to cups.conf (doesn't it?)

l.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.