Skip to content

Commit

Permalink
Ignore security.capability xattr
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Dec 15, 2023
1 parent d8a6a47 commit b7c1659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion irodsfs/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (dir *Dir) Setxattr(ctx context.Context, attr string, data []byte, flags ui
defer logger.Infof("Called Setxattr (%d) - %q", operID, dir.path)

if IsUnhandledAttr(attr) {
return syscall.EINVAL
return syscall.EACCES
}

dir.mutex.RLock()
Expand Down
2 changes: 1 addition & 1 deletion irodsfs/xattr.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func IsUnhandledAttr(attr string) bool {
// we suppress attr "system.posix_acl_access" as it may cause wrong permission check
case "system.posix_acl_access", "system.posix_acl_default", "system.dos_attrib":
return true
case "security.selinux", "security.apparmor":
case "security.selinux", "security.apparmor", "security.capability":
return true
case "user.xdg.origin.url", "user.xdg.referrer.url":
return true
Expand Down

0 comments on commit b7c1659

Please sign in to comment.