All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: ivg2@cornell.edu
Cc: SELinux@tycho.nsa.gov
Subject: Re: file_type_auto_trans is not sufficient
Date: Sat, 28 May 2005 01:24:02 -0400	[thread overview]
Message-ID: <42980072.6090701@redhat.com> (raw)
In-Reply-To: <1117252045.19698.16.camel@localhost.localdomain>

Ivan Gyurdiev wrote:

>>To address those problems, I think I need to add selinux support
>>to a number of applications, and perform the transition in the code. 
>>I'm not sure what's the best way to do that. Does adding 
>>the following functions to libselinux (or elsewhere) make sense?
>>
>>int mkdir_restorecon(const char *pathname, mode_t mode);
>>int creat_restorecon(const char *pathname, mode_t mode);
>>int mknod_restorecon(const char *pathname, mode_t mode, dev_t dev);
>>
>>Those would perform getfscreate/matchpathcon/setfscreate cycle,
>>and would ignore errors in permissive mode.
>>    
>>
>
>Actually, what exactly happens when you call setfscreate() and
>at the same time you have a matching file_type_auto_trans rule?
>
>In my case for /tmp/gconfd-$USER vs /tmp/orbit-$USER,
>(process is gconf, executing libORBit code that creates orbit-$USER)
>the orbit getfscreate() rule took precedence over
>the matching file_type_auto_trans in gconfd... does
>this always happen, or do I have to make a choice 
>between either file_type_auto_trans, or setfscreate() ?
>
>  
>
setfscreatecon takes precedence.

-- 



--
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.

  reply	other threads:[~2005-05-28  5:24 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-28  3:09 file_type_auto_trans is not sufficient Ivan Gyurdiev
2005-05-28  3:47 ` Ivan Gyurdiev
2005-05-28  5:24   ` Daniel J Walsh [this message]
2005-05-29  3:17     ` Ivan Gyurdiev
2005-05-29 10:52       ` Daniel J Walsh
2005-05-29 17:44         ` Ivan Gyurdiev
2005-05-30  3:03           ` Ivan Gyurdiev
2005-05-30  8:05             ` Ivan Gyurdiev
2005-05-31 13:36               ` Stephen Smalley
2005-05-31 15:09                 ` Ivan Gyurdiev
2005-05-31 13:18 ` Stephen Smalley
2005-05-31 13:35   ` Ivan Gyurdiev
2005-05-31 13:53     ` Stephen Smalley
2005-05-31 14:12     ` Karl MacMillan
2005-05-31 14:57       ` Ivan Gyurdiev
2005-05-31 16:32         ` Karl MacMillan
2005-05-31 16:48           ` Ivan Gyurdiev
2005-05-31 17:07             ` Stephen Smalley
2005-05-31 17:37               ` Ivan Gyurdiev
2005-05-31 17:39                 ` Stephen Smalley
2005-05-31 18:05                   ` Ivan Gyurdiev
2005-05-31 21:10                 ` Luke Kenneth Casson Leighton
2005-05-31 21:12             ` Luke Kenneth Casson Leighton
2005-05-31 21:21         ` Luke Kenneth Casson Leighton
2005-05-31 21:21           ` Luke Kenneth Casson Leighton
2005-05-31 23:09           ` Chad Sellers
2005-06-01  0:02             ` Luke Kenneth Casson Leighton
2005-06-01 11:21           ` Stephen Smalley
2005-06-01 11:21             ` Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42980072.6090701@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=SELinux@tycho.nsa.gov \
    --cc=ivg2@cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.