X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=kernel%2Fpid_namespace.c;h=5b8a6c9fe8634a35158a1eceec8a910887f4dd3b;hb=d3f60b348821117873529a6e868dd3d8fcaac869;hp=57bc1fd35b3cbe6bffdbfe71af5f13fc00648b81;hpb=f7b006931751f029620ad2f8310ac7a1484fbdb4;p=cascardo%2Flinux.git diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c index 57bc1fd35b3c..5b8a6c9fe863 100644 --- a/kernel/pid_namespace.c +++ b/kernel/pid_namespace.c @@ -102,6 +102,14 @@ static struct pid_namespace *create_pid_namespace(struct pid_namespace *parent_p if (err) goto out_put_parent_pid_ns; +#ifdef CONFIG_SECURITY_YAMA + ns->ptrace_scope = parent_pid_ns->ptrace_scope; + ns->protected_sticky_symlinks = + parent_pid_ns->protected_sticky_symlinks; + ns->protected_nonaccess_hardlinks = + parent_pid_ns->protected_nonaccess_hardlinks; +#endif + return ns; out_put_parent_pid_ns: