All of lore.kernel.org
 help / color / mirror / Atom feed
* We currently have a problem with cp -a /media/cdrom  /etc
@ 2007-01-12 18:46 Daniel J Walsh
  2007-01-12 18:55 ` Stephen Smalley
  0 siblings, 1 reply; 21+ messages in thread
From: Daniel J Walsh @ 2007-01-12 18:46 UTC (permalink / raw)
  To: Stephen Smalley, SE Linux

Currently in policy we do NOT have the following rule

allow iso9660_t fs_t:filesystem associate;

This causes cp -a to blow up when copying a cdrom to ext3.   I notice in 
policy we do allow this for nfs_t and dosfs_t to be assicoated with fs_t.

So this causes two problems, if we use cp -a from nfs_t or dosfs_t we 
end up with files on local disk labeled as nfs_t/dosfs_t when I believe 
we would be better off if they had transitioned.  So I could change 
policy to similarly allow iso9660_t files to be created and fix the cp 
-a problem.

Or I could remove the nfs_t and dosfs_t association and make the cp -a 
problem worse.  Since cp -a gets permission denied it really has no way 
of knowing what the correct behavior should be. 

Maybe a fix would be to allow cp to ask the kernel what to do if it can 
not setfscreatecon a particular context on a file system.

Thoughts?

Dan

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2007-01-16 13:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-12 18:46 We currently have a problem with cp -a /media/cdrom /etc Daniel J Walsh
2007-01-12 18:55 ` Stephen Smalley
2007-01-12 20:10   ` James Antill
2007-01-12 20:24     ` Stephen Smalley
2007-01-12 20:29       ` Stephen Smalley
2007-01-12 22:29         ` Casey Schaufler
2007-01-13  9:13           ` Russell Coker
2007-01-13 20:01             ` Casey Schaufler
2007-01-12 21:15       ` James Antill
2007-01-12 21:19         ` Stephen Smalley
2007-01-13 10:05         ` Jim Meyering
2007-01-15  5:16           ` James Antill
2007-01-15  7:54             ` Jim Meyering
2007-01-16 13:33               ` Stephen Smalley
2007-01-13 10:55         ` Russell Coker
2007-01-12 21:01     ` Stephen Smalley
2007-01-12 21:29       ` Jim Meyering
2007-01-12 21:19     ` Jim Meyering
2007-01-12 21:21       ` Stephen Smalley
2007-01-12 21:47         ` Jim Meyering
2007-01-12 21:56           ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.