Skip to content

Commit 1caf903

Browse files
committed
Mark *removexattr as readonly on linux_raw.
1 parent 5d0cf8d commit 1caf903

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/linux_raw/fs/syscalls.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,15 +1667,15 @@ pub(crate) fn flistxattr(fd: BorrowedFd<'_>, list: &mut [c::c_char]) -> io::Resu
16671667

16681668
#[inline]
16691669
pub(crate) fn removexattr(path: &CStr, name: &CStr) -> io::Result<()> {
1670-
unsafe { ret(syscall!(__NR_removexattr, path, name)) }
1670+
unsafe { ret(syscall_readonly!(__NR_removexattr, path, name)) }
16711671
}
16721672

16731673
#[inline]
16741674
pub(crate) fn lremovexattr(path: &CStr, name: &CStr) -> io::Result<()> {
1675-
unsafe { ret(syscall!(__NR_lremovexattr, path, name)) }
1675+
unsafe { ret(syscall_readonly!(__NR_lremovexattr, path, name)) }
16761676
}
16771677

16781678
#[inline]
16791679
pub(crate) fn fremovexattr(fd: BorrowedFd<'_>, name: &CStr) -> io::Result<()> {
1680-
unsafe { ret(syscall!(__NR_fremovexattr, fd, name)) }
1680+
unsafe { ret(syscall_readonly!(__NR_fremovexattr, fd, name)) }
16811681
}

0 commit comments

Comments
 (0)