History log of /freebsd-14.2/sys/compat/linux/linux_xattr.c (Results 1 – 9 of 9)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# e975d1b7 05-Sep-2023 Dmitry Chagin <[email protected]>

linux(4): Return ENOTSUP from listxattr instead of EPERM

FreeBSD does not permits manipulating extended attributes in the system
namespace by unprivileged accounts, even if account has appropriate
p

linux(4): Return ENOTSUP from listxattr instead of EPERM

FreeBSD does not permits manipulating extended attributes in the system
namespace by unprivileged accounts, even if account has appropriate
privileges to access filesystem object.
In Linux the system namespace is used to preserve posix acls. Some Gnu
coreutils binaries uses posix acls, eg, install, ls, cp. And fails if
we unexpectedly return EPERM error from xattr system calls.

In the other hands, in Linux read and write access to the system
namespace depend on the policy implemented for each filesystem, so we'll
mimics we're a filesystem that prohibits this for unpriveleged accounts.

Reported by: zirias
Tested by: zirias
MFC after: 1 week

(cherry picked from commit 11e37048db35d7fcfc285b867965de1aeefec2c8)

show more ...


# 53b3e15d 05-Sep-2023 Dmitry Chagin <[email protected]>

linux(4): Fix listxattr for the case when the size is 0

If size is specified as zero, these calls return the current size
of the list of extended attribute names (and leave list unchanged).

Tested

linux(4): Fix listxattr for the case when the size is 0

If size is specified as zero, these calls return the current size
of the list of extended attribute names (and leave list unchanged).

Tested by: zirias
MFC after: 1 week

(cherry picked from commit 18d1c86788f66f42c4e096142f4f8d168f68732c)

show more ...


# bce9c2e3 01-Sep-2023 Dmitry Chagin <[email protected]>

linux(4): Return ENOTSUP from xattr syscalls instead of EPERM

FreeBSD does not permits manipulating extended attributes in the system
namespace by unprivileged accounts, even if account has appropri

linux(4): Return ENOTSUP from xattr syscalls instead of EPERM

FreeBSD does not permits manipulating extended attributes in the system
namespace by unprivileged accounts, even if account has appropriate
privileges to access filesystem object.
In Linux the system namespace is used to preserve posix acls. Some Gnu
coreutils binaries uses posix acls, eg, install, ls. And fails if we
unexpectedly return EPERM error from xattr system calls.

In the other hands, in Linux read and write access to the system
namespace depend on the policy implemented for each filesystem, so we'll
mimics we're a filesystem that prohibits this for unpriveleged accounts.

Reported by: zirias
Tested by: zirias
MFC after: 1 week

(cherry picked from commit 1bfc4574f78653e4b64ac9dd31518c96a17fe52b)

show more ...


# 0f35bf8b 01-Sep-2023 Dmitry Chagin <[email protected]>

linux(4): Merge removexattr for future error recode

Tested by: zirias
MFC after: 1 week

(cherry picked from commit dfcc0237c3a97f4f7962da854389f3c5d976145a)


# a9b8a0ce 01-Sep-2023 Dmitry Chagin <[email protected]>

linux(4): Return ENODATA from getxattr syscalls instead of EPERM

On Linux ENODATA mean the named attribute does not exist, or the
process has no access to this attribute.

Reported by: zirias
PR:

linux(4): Return ENODATA from getxattr syscalls instead of EPERM

On Linux ENODATA mean the named attribute does not exist, or the
process has no access to this attribute.

Reported by: zirias
PR: 273517
Tested by: zirias
MFC after: 1 week

(cherry picked from commit 4d59b790553ef75b9a4b6a673eab3354f3d012b3)

show more ...


# 803280ea 01-Sep-2023 Dmitry Chagin <[email protected]>

linux(4): Merge getxattr for future error recode

Tested by: zirias
MFC after: 1 week

(cherry picked from commit 6b46ec66129d9490c91876f72d98e514121996a6)


# 3460fab5 18-Aug-2023 Dmitry Chagin <[email protected]>

linux(4): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743


# 685dc743 16-Aug-2023 Warner Losh <[email protected]>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 22dca7ac 22-Jul-2023 Dmitry Chagin <[email protected]>

linux(4): Implement xattr syscalls

Reviewed by:
Differential revision: https://reviews.freebsd.org/D35544
MFC after: 1 month