Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
generic_acl.c File Reference
#include <linux/sched.h>
#include <linux/gfp.h>
#include <linux/fs.h>
#include <linux/generic_acl.h>
#include <linux/posix_acl.h>
#include <linux/posix_acl_xattr.h>

Go to the source code of this file.

Functions

int generic_acl_init (struct inode *inode, struct inode *dir)
 
int generic_acl_chmod (struct inode *inode)
 

Variables

struct xattr_handler generic_acl_access_handler
 
struct xattr_handler generic_acl_default_handler
 

Function Documentation

int generic_acl_chmod ( struct inode inode)

generic_acl_chmod - change the access acl of upon chmod()

A chmod also changes the permissions of the owner, group/mask, and other ACL entries.

Definition at line 152 of file generic_acl.c.

int generic_acl_init ( struct inode inode,
struct inode dir 
)

generic_acl_init - Take care of acl inheritance at create time

Files created inside a directory with a default ACL inherit the directory's default ACL.

Definition at line 121 of file generic_acl.c.

Variable Documentation

struct xattr_handler generic_acl_access_handler
Initial value:
= {
.flags = ACL_TYPE_ACCESS,
.list = generic_acl_list,
.get = generic_acl_get,
.set = generic_acl_set,
}

Definition at line 170 of file generic_acl.c.

struct xattr_handler generic_acl_default_handler
Initial value:
= {
.flags = ACL_TYPE_DEFAULT,
.list = generic_acl_list,
.get = generic_acl_get,
.set = generic_acl_set,
}

Definition at line 178 of file generic_acl.c.