提交 713c0ecd 编写于 作者: S Sten Spans 提交者: James Morris

security: fix security_file_lock cmd argument

Pass posix-translated lock operations to security_file_lock
when invoked via sys_flock.
Signed-off-by: NSten Spans <Sten_Spans@genua.de>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 7d45ecaf
......@@ -1591,7 +1591,7 @@ SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd)
if (can_sleep)
lock->fl_flags |= FL_SLEEP;
error = security_file_lock(filp, cmd);
error = security_file_lock(filp, lock->fl_type);
if (error)
goto out_free;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册