From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: New patch for libselinux
Date: Tue, 20 Jun 2006 13:11:08 -0400 [thread overview]
Message-ID: <44982C2C.5050405@redhat.com> (raw)
In-Reply-To: <1150822180.17557.141.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> On Tue, 2006-06-20 at 11:33 -0400, Daniel J Walsh wrote:
>
>> Patch to libselinux to fix handling of MATCHPATHCON_NOTRANS.
>>
>> Also added two new functions to handle looking at files on disk and
>> comparing to the default file_contexts, These functions are
>> intended to be used by rpm -V.
>>
>
> I don't think we want to directly export
> selinux_compare_context_without_user(), or if we do, we want it
> abstracted in some manner that covers the general case.
>
>
We are using similar functions in restorecon and I think somewhere else,
so I thought
it would be good to move it into libselinux.
> Also, I think selinux_verify_file_context needs to be generalized,
> because if/when rpm begins to use contexts from the rpm headers again,
> then rpm will need to pass in the context against which to compare
> rather than having selinux_verify_file_context always use matchpathcon.
>
>
Not sure what you mean, You still have the other functions to use. The
idea with this
function is to compare a files on disk context with the system
defaults. You could also use
matchpathcon_init before calling this function to change the default
file context file?
I also want to define a function
selinux_setdefault_filecon(file)
Which would do matchpathcon/setfilecon under the covers, and do the
appropriate turn off translations stuff.
Since this code is propulgating into a series of programs. (install,
MAKEDEV, kadmin?, and Nautilus, restorecon and probably others.)
--
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.
next prev parent reply other threads:[~2006-06-20 17:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4497FCCF.1030805@redhat.com>
[not found] ` <1150812243.17557.79.camel@moss-spartans.epoch.ncsc.mil>
2006-06-20 15:33 ` New patch for libselinux Daniel J Walsh
2006-06-20 16:49 ` Stephen Smalley
2006-06-20 17:11 ` Daniel J Walsh [this message]
2006-06-20 17:33 ` Stephen Smalley
2006-06-20 17:55 ` Stephen Smalley
2006-06-20 20:28 ` I have redone the original " Daniel J Walsh
2006-06-21 17:50 ` 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=44982C2C.5050405@redhat.com \
--to=dwalsh@redhat.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
/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.