All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: eparis@redhat.com, selinux@tycho.nsa.gov
Subject: Re: [PATCH 029/155] policycoreutils: fixfiles clean up /var/run and
Date: Thu, 04 Aug 2011 12:42:37 -0400	[thread overview]
Message-ID: <4E3ACBFD.4080003@redhat.com> (raw)
In-Reply-To: <1312469767.20973.53.camel@moss-pluto>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/04/2011 10:56 AM, Stephen Smalley 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?
> 


I guess we could add a file to identify the types of files with no
labels and files that the kernel does not understand.   Patches welcome...

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk46y/0ACgkQrlYvE4MpobPIOQCg4HMijy8wQbb2A8N6Oq/YK9Cd
3jkAnilxruKeLvqm9Ca/tIU/I7959dL2
=C1vN
-----END PGP SIGNATURE-----

--
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:[~2011-08-04 16:42 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 [this message]
2011-08-04 17:33   ` Eric Paris
2011-08-04 19:16     ` Christopher J. PeBenito
     [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=4E3ACBFD.4080003@redhat.com \
    --to=dwalsh@redhat.com \
    --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.