All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: sudo change in policy
Date: Mon, 19 Mar 2007 11:29:04 -0400	[thread overview]
Message-ID: <1174318144.29664.56.camel@sgc> (raw)
In-Reply-To: <45E59FF1.9070306@redhat.com>

On Wed, 2007-02-28 at 10:29 -0500, Daniel J Walsh wrote:
> sudo should be able to getattr on all executables not just 
> bin_t/sbin_t.  Confined executeables run from sudo need this.
> 
> sudo_exec_t needs to be marked as exec_type so prelink will work correctly.
> 
> sudo semanage should work

Merged, except for the comment change.

> --- nsaserefpolicy/policy/modules/admin/sudo.if 2007-02-19
> 11:32:54.000000000 -0500
> +++ serefpolicy-2.5.5/policy/modules/admin/sudo.if      2007-02-28
> 10:25:17.000000000 -0500
> @@ -37,7 +37,6 @@
>  
>         gen_require(`
>                 type sudo_exec_t;
> -               bool secure_mode;
>         ')
>  
>         ##############################
> @@ -92,12 +91,10 @@
>         fs_getattr_xattr_fs($1_sudo_t)
>  
>         auth_domtrans_chk_passwd($1_sudo_t)
> -       # sudo stores a token in the pam_pid directory
>         auth_manage_pam_pid($1_sudo_t)
>  
> -       corecmd_getattr_bin_files($1_sudo_t)
>         corecmd_read_sbin_symlinks($1_sudo_t)
> -       corecmd_getattr_sbin_files($1_sudo_t)
> +       corecmd_getattr_all_executables($1_sudo_t)
>  
>         domain_use_interactive_fds($1_sudo_t)
>         domain_sigchld_interactive_fds($1_sudo_t)
> --- nsaserefpolicy/policy/modules/admin/sudo.te 2007-02-19
> 11:32:54.000000000 -0500
> +++ serefpolicy-2.5.5/policy/modules/admin/sudo.te      2007-02-28
> 10:25:17.000000000 -0500
> @@ -7,5 +7,6 @@
>  
>  type sudo_exec_t;
>  files_type(sudo_exec_t)
> +corecmd_executable_file(sudo_exec_t)
>  
>  # Remaining policy in per user domain template.

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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:[~2007-03-19 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-28 15:29 sudo change in policy Daniel J Walsh
2007-03-19 15:29 ` 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=1174318144.29664.56.camel@sgc \
    --to=cpebenito@tresys.com \
    --cc=dwalsh@redhat.com \
    --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.