Re: [PATCH] selinux: remove unnecessary selinux cred request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 11, 2019 at 9:02 PM Shaokun Zhang
<zhangshaokun@xxxxxxxxxxxxx> wrote:
> From: Yang Guo <guoyang2@xxxxxxxxxx>
>
> task_security_struct was obtained at the beginning of may_create
> and selinux_inode_init_security, no need to obtain again.
> may_create will be called very frequently when create dir and file.
>
> Cc: Paul Moore <paul@xxxxxxxxxxxxxx>
> Cc: Stephen Smalley <sds@xxxxxxxxxxxxx>
> Cc: Eric Paris <eparis@xxxxxxxxxxxxxx>
> Signed-off-by: Yang Guo <guoyang2@xxxxxxxxxx>
> Signed-off-by: Shaokun Zhang <zhangshaokun@xxxxxxxxxxxxx>
> ---
>  security/selinux/hooks.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Merged into selinux/next, thanks.

-- 
paul moore
www.paul-moore.com



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux