|
Message-ID: <20160729175819.GA11621@pc.thejh.net>
Date: Fri, 29 Jul 2016 19:58:19 +0200
From: Jann Horn <jann@...jh.net>
To: kernel-hardening@...ts.openwall.com
Cc: linux-security-module@...r.kernel.org, keescook@...omium.org,
spender@...ecurity.net, jmorris@...ei.org,
casey.schaufler@...el.com, michael.leibowitz@...el.com,
william.c.roberts@...el.com,
Elena Reshetova <elena.reshetova@...el.com>
Subject: Re: [RFC] [PATCH 2/5] task_unshare LSM hook
On Fri, Jul 29, 2016 at 10:34:37AM +0300, Elena Reshetova wrote:
> This adds a new security_task_unshare() LSM hook.
> It can be used by LSMs concerned about unshare
> system call.
>
> Signed-off-by: Elena Reshetova <elena.reshetova@...el.com>
> ---
[...]
> @@ -2052,6 +2052,11 @@ SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
> if (err)
> goto bad_unshare_cleanup_cred;
>
> + err = security_task_unshare(unshare_flags, new_fs, new_fd,
> + new_cred, new_nsproxy);
> + if (err)
> + goto bad_unshare_cleanup_cred;
> +
> if (new_fs || new_fd || do_sysvsem || new_cred || new_nsproxy) {
> if (do_sysvsem) {
> /*
Why would you have an LSM hook just for the unshare() syscall given
that clone() exposes nearly the same functionality?
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.