Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
04fc66e7
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 接近 4 年
通知
14
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
04fc66e7
编写于
13年前
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch ->path_mknod() to umode_t
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
4572befe
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
include/linux/security.h
include/linux/security.h
+3
-3
net/unix/af_unix.c
net/unix/af_unix.c
+1
-1
security/apparmor/lsm.c
security/apparmor/lsm.c
+1
-1
security/capability.c
security/capability.c
+1
-1
security/security.c
security/security.c
+1
-1
security/tomoyo/tomoyo.c
security/tomoyo/tomoyo.c
+1
-1
未找到文件。
include/linux/security.h
浏览文件 @
04fc66e7
...
@@ -1426,7 +1426,7 @@ struct security_operations {
...
@@ -1426,7 +1426,7 @@ struct security_operations {
int
(
*
path_unlink
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
(
*
path_unlink
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
(
*
path_mkdir
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
(
*
path_mkdir
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
(
*
path_rmdir
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
(
*
path_rmdir
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
(
*
path_mknod
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
int
(
*
path_mknod
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
);
unsigned
int
dev
);
int
(
*
path_truncate
)
(
struct
path
*
path
);
int
(
*
path_truncate
)
(
struct
path
*
path
);
int
(
*
path_symlink
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
int
(
*
path_symlink
)
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
...
@@ -2857,7 +2857,7 @@ static inline void security_skb_classify_flow(struct sk_buff *skb, struct flowi
...
@@ -2857,7 +2857,7 @@ static inline void security_skb_classify_flow(struct sk_buff *skb, struct flowi
int
security_path_unlink
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
security_path_unlink
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
security_path_mkdir
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
security_path_mkdir
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
security_path_rmdir
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
security_path_rmdir
(
struct
path
*
dir
,
struct
dentry
*
dentry
);
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
);
unsigned
int
dev
);
int
security_path_truncate
(
struct
path
*
path
);
int
security_path_truncate
(
struct
path
*
path
);
int
security_path_symlink
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
int
security_path_symlink
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
...
@@ -2888,7 +2888,7 @@ static inline int security_path_rmdir(struct path *dir, struct dentry *dentry)
...
@@ -2888,7 +2888,7 @@ static inline int security_path_rmdir(struct path *dir, struct dentry *dentry)
}
}
static
inline
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
static
inline
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
unsigned
int
dev
)
umode_
t
mode
,
unsigned
int
dev
)
{
{
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
net/unix/af_unix.c
浏览文件 @
04fc66e7
...
@@ -847,7 +847,7 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
...
@@ -847,7 +847,7 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
atomic_set
(
&
addr
->
refcnt
,
1
);
atomic_set
(
&
addr
->
refcnt
,
1
);
if
(
sun_path
[
0
])
{
if
(
sun_path
[
0
])
{
u
nsigned
in
t
mode
;
u
mode_
t
mode
;
err
=
0
;
err
=
0
;
/*
/*
* Get the parent directory, calculate the hash for last
* Get the parent directory, calculate the hash for last
...
...
This diff is collapsed.
Click to expand it.
security/apparmor/lsm.c
浏览文件 @
04fc66e7
...
@@ -274,7 +274,7 @@ static int apparmor_path_rmdir(struct path *dir, struct dentry *dentry)
...
@@ -274,7 +274,7 @@ static int apparmor_path_rmdir(struct path *dir, struct dentry *dentry)
}
}
static
int
apparmor_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
static
int
apparmor_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
unsigned
int
dev
)
umode_
t
mode
,
unsigned
int
dev
)
{
{
return
common_perm_create
(
OP_MKNOD
,
dir
,
dentry
,
AA_MAY_CREATE
,
mode
);
return
common_perm_create
(
OP_MKNOD
,
dir
,
dentry
,
AA_MAY_CREATE
,
mode
);
}
}
...
...
This diff is collapsed.
Click to expand it.
security/capability.c
浏览文件 @
04fc66e7
...
@@ -235,7 +235,7 @@ static void cap_inode_getsecid(const struct inode *inode, u32 *secid)
...
@@ -235,7 +235,7 @@ static void cap_inode_getsecid(const struct inode *inode, u32 *secid)
}
}
#ifdef CONFIG_SECURITY_PATH
#ifdef CONFIG_SECURITY_PATH
static
int
cap_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
static
int
cap_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
)
unsigned
int
dev
)
{
{
return
0
;
return
0
;
...
...
This diff is collapsed.
Click to expand it.
security/security.c
浏览文件 @
04fc66e7
...
@@ -388,7 +388,7 @@ int security_old_inode_init_security(struct inode *inode, struct inode *dir,
...
@@ -388,7 +388,7 @@ int security_old_inode_init_security(struct inode *inode, struct inode *dir,
EXPORT_SYMBOL
(
security_old_inode_init_security
);
EXPORT_SYMBOL
(
security_old_inode_init_security
);
#ifdef CONFIG_SECURITY_PATH
#ifdef CONFIG_SECURITY_PATH
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
int
security_path_mknod
(
struct
path
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
unsigned
int
dev
)
unsigned
int
dev
)
{
{
if
(
unlikely
(
IS_PRIVATE
(
dir
->
dentry
->
d_inode
)))
if
(
unlikely
(
IS_PRIVATE
(
dir
->
dentry
->
d_inode
)))
...
...
This diff is collapsed.
Click to expand it.
security/tomoyo/tomoyo.c
浏览文件 @
04fc66e7
...
@@ -234,7 +234,7 @@ static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry,
...
@@ -234,7 +234,7 @@ static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry,
* Returns 0 on success, negative value otherwise.
* Returns 0 on success, negative value otherwise.
*/
*/
static
int
tomoyo_path_mknod
(
struct
path
*
parent
,
struct
dentry
*
dentry
,
static
int
tomoyo_path_mknod
(
struct
path
*
parent
,
struct
dentry
*
dentry
,
in
t
mode
,
unsigned
int
dev
)
umode_
t
mode
,
unsigned
int
dev
)
{
{
struct
path
path
=
{
parent
->
mnt
,
dentry
};
struct
path
path
=
{
parent
->
mnt
,
dentry
};
int
type
=
TOMOYO_TYPE_CREATE
;
int
type
=
TOMOYO_TYPE_CREATE
;
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部