Skip to content

Commit

Permalink
[LibOS] Report back the default permissions of a file consistently
Browse files Browse the repository at this point in the history
Signed-off-by: Sonali Saha <sonali.saha@intel.com>
  • Loading branch information
sahason authored and dimakuv committed Oct 4, 2021
1 parent 540cbf2 commit 852923d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions LibOS/shim/src/fs/chroot/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ static int chroot_lookup(struct shim_dentry* dent) {
BUG();
}

mode_t perm = (pal_attr.readable ? S_IRUSR : 0) |
(pal_attr.writable ? S_IWUSR : 0) |
(pal_attr.runnable ? S_IXUSR : 0);
mode_t perm = pal_attr.share_flags;

file_off_t size = (type == S_IFREG ? pal_attr.pending_size : 0);

Expand Down

0 comments on commit 852923d

Please sign in to comment.