-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 264543 b: refs/heads/master c: bf6d0f5 h: refs/heads/master i: 264541: 1747c8d 264539: 329d663 264535: 7ffff72 264527: f7fb204 264511: 05e3124 v: v3
- Loading branch information
Mimi Zohar
committed
Sep 14, 2011
1 parent
f17668b
commit 8a5b7b2
Showing
6 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: a924ce0b35875ef9512135b46a32f4150fd700b2 | ||
refs/heads/master: bf6d0f5dcda17df3cc5577e203d0f8ea1c2ad6aa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (C) 2011 IBM Corporation | ||
* | ||
* Author: | ||
* Mimi Zohar <zohar@us.ibm.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 2 of the License. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/xattr.h> | ||
|
||
int posix_xattr_acl(char *xattr) | ||
{ | ||
int xattr_len = strlen(xattr); | ||
|
||
if ((strlen(XATTR_NAME_POSIX_ACL_ACCESS) == xattr_len) | ||
&& (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0)) | ||
return 1; | ||
if ((strlen(XATTR_NAME_POSIX_ACL_DEFAULT) == xattr_len) | ||
&& (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0)) | ||
return 1; | ||
return 0; | ||
} |