Revert "UPSTREAM: tracefs: Have tracefs directories not set OTH permission bits by default"
This reverts commit 9c63be2ada
.
Reason for revert: android12 still relies on OTH bits being set.
Bug: 218458907
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Change-Id: Idac3d9a515188d718b7bf5c01105531f2e9bacdc
This commit is contained in:
@@ -504,8 +504,7 @@ static struct dentry *__create_dir(const char *name, struct dentry *parent,
|
|||||||
if (unlikely(!inode))
|
if (unlikely(!inode))
|
||||||
return failed_creating(dentry);
|
return failed_creating(dentry);
|
||||||
|
|
||||||
/* Do not set bits for OTH */
|
inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO;
|
||||||
inode->i_mode = S_IFDIR | S_IRWXU | S_IRUSR| S_IRGRP | S_IXUSR | S_IXGRP;
|
|
||||||
inode->i_op = ops;
|
inode->i_op = ops;
|
||||||
inode->i_fop = &simple_dir_operations;
|
inode->i_fop = &simple_dir_operations;
|
||||||
inode->i_uid = d_inode(dentry->d_parent)->i_uid;
|
inode->i_uid = d_inode(dentry->d_parent)->i_uid;
|
||||||
|
Reference in New Issue
Block a user