这里需要注意的一点是,检查文件的可执行权限的顺序是:
- 看文件的权限;
- 看对应的shell命令是否有权限执行;
- 看文件所属的目录的权限;这一点也是比检查的项;
static struct file *do_open_execat(int fd, struct filename *name, int flags)
{
struct file *file;
int err;
这里需要注意的一点是,检查文件的可执行权限的顺序是:
static struct file *do_open_execat(int fd, struct filename *name, int flags)
{
struct file *file;
int err;