]> git.karo-electronics.de Git - linux-beck.git/commit
ocfs2: add ocfs2_init_security in during file create
authorTiger Yang <tiger.yang@oracle.com>
Fri, 14 Nov 2008 03:16:41 +0000 (11:16 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:34:20 +0000 (08:34 -0800)
commit534eadddc1de8754a227202c0e747af4973f82ce
treee044976da3644f020ed1da420211cc433dbc0a92
parent923f7f3102b80403152e05aee3d55ecfce240440
ocfs2: add ocfs2_init_security in during file create

Security attributes must be set when creating a new inode.

We do this in three steps.

- First, get security xattr's name and value by security_operation

- Calculate and reserve the meta data and clusters needed by this security
  xattr before starting transaction

- Finally, we set it before add_entry

Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/namei.c
fs/ocfs2/xattr.c
fs/ocfs2/xattr.h