All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] Label /lib symlink as lib_t for every distro
Date: Tue, 8 Jul 2014 08:55:32 -0400	[thread overview]
Message-ID: <53BBEA44.104@tresys.com> (raw)
In-Reply-To: <1404578126-15295-1-git-send-email-nicolas.iooss@m4x.org>

On 7/5/2014 12:35 PM, Nicolas Iooss wrote:
> As in Debian, Gentoo and Arch Linux /lib may be a symlink, move its file
> context definition outside of ifdef blocks.

Merged.



> ---
>  policy/modules/system/libraries.fc | 9 +--------
>  1 file changed, 1 insertion(+), 8 deletions(-)
> 
> diff --git a/policy/modules/system/libraries.fc b/policy/modules/system/libraries.fc
> index bea3bdf..b532946 100644
> --- a/policy/modules/system/libraries.fc
> +++ b/policy/modules/system/libraries.fc
> @@ -36,19 +36,12 @@ ifdef(`distro_redhat',`
>  # /lib(64)?
>  #
>  /lib					-d	gen_context(system_u:object_r:lib_t,s0)
> +/lib					-l	gen_context(system_u:object_r:lib_t,s0)
>  /lib/.*						gen_context(system_u:object_r:lib_t,s0)
>  /lib/ld-[^/]*\.so(\.[^/]*)*		--	gen_context(system_u:object_r:ld_so_t,s0)
>  
>  /lib/security/pam_poldi\.so		--	gen_context(system_u:object_r:textrel_shlib_t,s0)
>  
> -ifdef(`distro_debian',`
> -/lib					-l	gen_context(system_u:object_r:lib_t,s0)
> -')
> -
> -ifdef(`distro_gentoo',`
> -/lib					-l	gen_context(system_u:object_r:lib_t,s0)
> -')
> -
>  #
>  # /opt
>  #
> 

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

      reply	other threads:[~2014-07-08 12:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-05 16:35 [refpolicy] [PATCH] Label /lib symlink as lib_t for every distro Nicolas Iooss
2014-07-08 12:55 ` Christopher J. PeBenito [this message]

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=53BBEA44.104@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /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.