Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
52ef0c04
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
52ef0c04
编写于
7月 26, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch securityfs_create_file() to umode_t
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
910f4ece
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
include/linux/security.h
include/linux/security.h
+2
-2
security/apparmor/apparmorfs.c
security/apparmor/apparmorfs.c
+1
-1
security/inode.c
security/inode.c
+6
-6
security/tomoyo/securityfs_if.c
security/tomoyo/securityfs_if.c
+1
-1
未找到文件。
include/linux/security.h
浏览文件 @
52ef0c04
...
...
@@ -3010,7 +3010,7 @@ static inline void security_audit_rule_free(void *lsmrule)
#ifdef CONFIG_SECURITYFS
extern
struct
dentry
*
securityfs_create_file
(
const
char
*
name
,
mode_t
mode
,
extern
struct
dentry
*
securityfs_create_file
(
const
char
*
name
,
u
mode_t
mode
,
struct
dentry
*
parent
,
void
*
data
,
const
struct
file_operations
*
fops
);
extern
struct
dentry
*
securityfs_create_dir
(
const
char
*
name
,
struct
dentry
*
parent
);
...
...
@@ -3025,7 +3025,7 @@ static inline struct dentry *securityfs_create_dir(const char *name,
}
static
inline
struct
dentry
*
securityfs_create_file
(
const
char
*
name
,
mode_t
mode
,
u
mode_t
mode
,
struct
dentry
*
parent
,
void
*
data
,
const
struct
file_operations
*
fops
)
...
...
security/apparmor/apparmorfs.c
浏览文件 @
52ef0c04
...
...
@@ -165,7 +165,7 @@ static void __init aafs_remove(const char *name)
*
* Used aafs_remove to remove entries created with this fn.
*/
static
int
__init
aafs_create
(
const
char
*
name
,
in
t
mask
,
static
int
__init
aafs_create
(
const
char
*
name
,
umode_
t
mask
,
const
struct
file_operations
*
fops
)
{
struct
dentry
*
dentry
;
...
...
security/inode.c
浏览文件 @
52ef0c04
...
...
@@ -56,7 +56,7 @@ static const struct file_operations default_file_ops = {
.
llseek
=
noop_llseek
,
};
static
struct
inode
*
get_inode
(
struct
super_block
*
sb
,
in
t
mode
,
dev_t
dev
)
static
struct
inode
*
get_inode
(
struct
super_block
*
sb
,
umode_
t
mode
,
dev_t
dev
)
{
struct
inode
*
inode
=
new_inode
(
sb
);
...
...
@@ -85,7 +85,7 @@ static struct inode *get_inode(struct super_block *sb, int mode, dev_t dev)
/* SMP-safe */
static
int
mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
umode_
t
mode
,
dev_t
dev
)
{
struct
inode
*
inode
;
int
error
=
-
ENOMEM
;
...
...
@@ -102,7 +102,7 @@ static int mknod(struct inode *dir, struct dentry *dentry,
return
error
;
}
static
int
mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
)
static
int
mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
)
{
int
res
;
...
...
@@ -113,7 +113,7 @@ static int mkdir(struct inode *dir, struct dentry *dentry, int mode)
return
res
;
}
static
int
create
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
)
static
int
create
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
)
{
mode
=
(
mode
&
S_IALLUGO
)
|
S_IFREG
;
return
mknod
(
dir
,
dentry
,
mode
,
0
);
...
...
@@ -145,7 +145,7 @@ static struct file_system_type fs_type = {
.
kill_sb
=
kill_litter_super
,
};
static
int
create_by_name
(
const
char
*
name
,
mode_t
mode
,
static
int
create_by_name
(
const
char
*
name
,
u
mode_t
mode
,
struct
dentry
*
parent
,
struct
dentry
**
dentry
)
{
...
...
@@ -205,7 +205,7 @@ static int create_by_name(const char *name, mode_t mode,
* If securityfs is not enabled in the kernel, the value %-ENODEV is
* returned.
*/
struct
dentry
*
securityfs_create_file
(
const
char
*
name
,
mode_t
mode
,
struct
dentry
*
securityfs_create_file
(
const
char
*
name
,
u
mode_t
mode
,
struct
dentry
*
parent
,
void
*
data
,
const
struct
file_operations
*
fops
)
{
...
...
security/tomoyo/securityfs_if.c
浏览文件 @
52ef0c04
...
...
@@ -224,7 +224,7 @@ static const struct file_operations tomoyo_operations = {
*
* Returns nothing.
*/
static
void
__init
tomoyo_create_entry
(
const
char
*
name
,
const
mode_t
mode
,
static
void
__init
tomoyo_create_entry
(
const
char
*
name
,
const
u
mode_t
mode
,
struct
dentry
*
parent
,
const
u8
key
)
{
securityfs_create_file
(
name
,
mode
,
parent
,
((
u8
*
)
NULL
)
+
key
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录