Security: Add hook to calculate context based on a negative dentry.
authorDavid Quigley <dpquigl@davequigley.com>
Wed, 22 May 2013 16:50:34 +0000 (12:50 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 8 Jun 2013 20:19:41 +0000 (16:19 -0400)
commitd47be3dfecaf20255af89a57460285c82d5271ad
tree6427561f82a9bf90f17d748a865e3e0084919540
parent4488cc96c581f130f3e86283d514123dce0dd46b
Security: Add hook to calculate context based on a negative dentry.

There is a time where we need to calculate a context without the
inode having been created yet. To do this we take the negative dentry and
calculate a context based on the process and the parent directory contexts.

Acked-by: Eric Paris <eparis@redhat.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Matthew N. Dodd <Matthew.Dodd@sparta.com>
Signed-off-by: Miguel Rodel Felipe <Rodel_FM@dsi.a-star.edu.sg>
Signed-off-by: Phua Eu Gene <PHUA_Eu_Gene@dsi.a-star.edu.sg>
Signed-off-by: Khin Mi Mi Aung <Mi_Mi_AUNG@dsi.a-star.edu.sg>
Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/security.h
security/capability.c
security/security.c
security/selinux/hooks.c