diff options
author | ChenXiaoSong <chenxiaosong2@huawei.com> | 2022-09-23 13:40:14 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-12-06 10:38:38 -0500 |
commit | 6f1c1d95dc93b52a8ef9cc1f3f610c2d5e6b217b (patch) | |
tree | a918ea42e1ea270911b859a002b21a93e7e83f11 /fs/nfs/sysctl.c | |
parent | d01c6ed6db38a4db2921591e4f5425bee1931aca (diff) |
NFS: make sure open context mode have FMODE_EXEC when file open for exec
Because file f_mode never have FMODE_EXEC, open context mode won't get
FMODE_EXEC from file f_mode. Open context mode only care about FMODE_READ/
FMODE_WRITE/FMODE_EXEC, and all info about open context mode can be convert
from file f_flags, so convert file f_flags to open context mode by
flags_to_mode().
Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/sysctl.c')
0 files changed, 0 insertions, 0 deletions