From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Eric Paris <eparis@parisplace.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
Daniel J Walsh <dwalsh@redhat.com>,
eparis@redhat.com, selinux@tycho.nsa.gov
Subject: Re: [PATCH 029/155] policycoreutils: fixfiles clean up /var/run and
Date: Thu, 04 Aug 2011 15:16:19 -0400 [thread overview]
Message-ID: <4E3AF003.8030802@tresys.com> (raw)
In-Reply-To: <CACLa4ptckXGt6XEqDMnmeZhV3AzVwnL=ktSTtVTFGg+A=Ajcug@mail.gmail.com>
On 8/4/2011 1:33 PM, Eric Paris wrote:
> Is there a reasonable way for a script to determine
> SECINITSID_UNLABELED? You're right though, it does sound like a good
> todo.
cat /selinux/initial_contexts/unlabeled
> On Thu, Aug 4, 2011 at 10:56 AM, Stephen Smalley<sds@tycho.nsa.gov> wrote:
>> On Wed, 2011-08-03 at 16:56 -0400, Daniel J Walsh wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>>
>>> This patch looks good to me. acked.
>>
>> > From dff45c3977973dfbdbc7261b6fef05215d3515d8 Mon Sep 17 00:00:00 2001
>> From: Eric Paris<eparis@redhat.com>
>> Date: Sun, 10 Jul 2011 13:35:32 +0200
>> Subject: [PATCH 029/155] policycoreutils: fixfiles clean up /var/run and
>> /var/lib/debug
>>
>> clean up /var/run and /var/lib/debug just like we do for /tmp and
>> /var/tmp since they can easily get unlabeled files.
>>
>> Signed-off-by: Eric Paris<eparis@redhat.com>
>> ---
>> policycoreutils/scripts/fixfiles | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles
>> index 1da3fb2..c5c92bf 100755
>> --- a/policycoreutils/scripts/fixfiles
>> +++ b/policycoreutils/scripts/fixfiles
>> @@ -142,6 +142,8 @@ rm -rf /tmp/gconfd-* /tmp/pulse-* /tmp/orbit-*
>> find /tmp \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) \( -type s -o -type p \) -delete
>> find /tmp \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t tmp_t {} \;
>> find /var/tmp \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t tmp_t {} \;
>> +find /var/run \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t var_run_t {} \;
>> +[ -e /var/lib/debug ]&& find /var/lib/debug \( -context "*:file_t*" -o -context "*:unlabeled_t*" \) -exec chcon -t lib_t {} \;
>> exit $?
>> }
>>
>>
>> Does it bother anyone else that you are hardcoding policy types into
>> your scripts here? What happens when someone wants to use a different
>> policy that doesn't define those types?
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
--
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:[~2011-08-04 19:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 20:56 [PATCH 029/155] policycoreutils: fixfiles clean up /var/run and Daniel J Walsh
2011-08-04 14:56 ` Stephen Smalley
2011-08-04 16:42 ` Daniel J Walsh
2011-08-04 17:33 ` Eric Paris
2011-08-04 19:16 ` Christopher J. PeBenito [this message]
[not found] ` <CACLa4puk2gO=aV=oNj-Kmj=eSmYmquX0skKoCxso6o9tWcf_Ng@mail.gmail.com>
2011-08-04 19:33 ` Stephen Smalley
2011-08-04 20:26 ` Daniel J Walsh
2011-08-04 21:00 ` Eric Paris
2011-08-04 21:06 ` Daniel J Walsh
2011-08-04 21:10 ` Eric Paris
2011-08-04 21:50 ` Daniel J Walsh
2011-08-05 14:18 ` Stephen Smalley
2011-08-05 14:45 ` Daniel J Walsh
2011-08-05 15:10 ` Eric Paris
2011-08-05 15:34 ` Daniel J Walsh
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=4E3AF003.8030802@tresys.com \
--to=cpebenito@tresys.com \
--cc=dwalsh@redhat.com \
--cc=eparis@parisplace.org \
--cc=eparis@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.