All of lore.kernel.org
 help / color / mirror / Atom feed
* restorecon and symbolic links
@ 2009-08-29 17:10 Martin Orr
  2009-08-29 23:19 ` Manoj Srivastava
  0 siblings, 1 reply; 23+ messages in thread
From: Martin Orr @ 2009-08-29 17:10 UTC (permalink / raw)
  To: SELinux List; +Cc: Stephen Smalley

With policycoreutils 2.0.71, "restorecon /dev/stdin" fails if stdin is a pipe:
martin@caligula:~$ echo hi | sudo restorecon /dev/stdin
realpath(/dev/stdin) failed No such file or directory

Why would you want to do this?
The Debian udev init script does
ln -s /proc/self/fd/0 /dev/stdin
restorecon /dev/stdin
I am not sure why stdin is a pipe here but it is some consequence of the
boot process.

The intention here (and what happened with policycoreutils 2.0.69) is to
relabel the symbolic link.  But the recent realpath patch changed this, and
I don't think there is a way now to ask restorecon to relabel an individual
symlink.

-- 
Martin Orr

--
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] 23+ messages in thread

end of thread, other threads:[~2009-09-04 16:15 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-29 17:10 restorecon and symbolic links Martin Orr
2009-08-29 23:19 ` Manoj Srivastava
2009-08-31 12:17   ` Stephen Smalley
2009-08-31 12:20     ` Stephen Smalley
2009-08-31 13:24       ` Martin Orr
2009-08-31 13:21     ` Martin Orr
2009-08-31 20:27       ` Stephen Smalley
2009-09-01 13:43         ` Martin Orr
2009-09-01 14:34           ` Martin Orr
2009-09-01 14:46             ` Stephen Smalley
2009-09-02 12:24               ` Martin Orr
2009-09-02 12:52                 ` Stephen Smalley
2009-09-03  9:47                   ` Martin Orr
2009-09-03 15:25                     ` Stephen Smalley
2009-09-03 20:17                       ` SELinux and SSH Timers ? Hasan Rezaul-CHR010
2009-09-03 20:32                         ` Stephen Smalley
2009-09-04 11:49                           ` Stephen Smalley
2009-09-04 14:45                             ` Hasan Rezaul-CHR010
2009-09-04 14:56                               ` Stephen Smalley
2009-09-04 14:55                                 ` Hasan Rezaul-CHR010
2009-09-04 15:17                                 ` Hasan Rezaul-CHR010
2009-09-04 16:06                                   ` Stephen Smalley
2009-09-04 16:15                                     ` Hasan Rezaul-CHR010

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.