Skip to content

Commit 7c58b8e

Browse files
protected xattr (#201)
1 parent 0f3935b commit 7c58b8e

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

apx-parameters.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,15 @@ CVMFS_TIMEOUT Timeout in seconds for HTTP requests with a prox
124124
CVMFS_TIMEOUT_DIRECT Timeout in seconds for HTTP requests without a proxy server.
125125
CVMFS_TRACEFILE If set, enables the tracer and trace file system calls to the given file.
126126
CVMFS_USE_GEOAPI Request order of Stratum 1 servers and fallback proxies via Geo-API.
127+
CVMFS_USE_SSL_SYSTEM_CA | When connecting to an HTTPS endpoints,
128+
| it will load the certificates provided by the system.
127129
CVMFS_USER Sets the ``gid`` and ``uid`` mount options. Don't touch or overwrite.
128130
CVMFS_USYSLOG | All messages that normally are logged to syslog are re-directed to the given file.
129131
| This file can grow up to 500kB and there is one step of log rotation.
130132
| Required for $\mu$CernVM.
133+
CVMFS_XATTR_PRIVILEGED_GIDS Comma-separated list of (main) group IDs that are allowed to access the extended attributes listed by ``CVMFS_XATTR_PROTECTED_XATTRS``.
134+
CVMFS_XATTR_PROTECTED_XATTRS Comma-separated list of extended attributes (full name, e.g. ``user.fqrn``) that are only accessible by ``root`` and the group IDs listed by ``CVMFS_XATTR_PRIVILEGED_GIDS``.
131135
CVMFS_WORKSPACE Set the local directory for storing special files (defaults to the cache directory).
132-
CVMFS_USE_SSL_SYSTEM_CA | When connecting to an HTTPS endpoints,
133-
| it will load the certificates provided by the system.
134136
=============================== ========================================================================================
135137

136138

cpt-details.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,15 @@ cryptographic hash of the file at hand. The extended attributes are used
790790
by the ``cvmfs_config stat`` command in order to show a current overview
791791
of health and performance numbers.
792792

793+
Access to extended attributes can be restricted in the client config to
794+
``root`` and users with a specific (main) ``gid`` listed by
795+
``CVMFS_XATTR_PRIVILEGED_GIDS``. Extended attributes to which
796+
this should apply are listed in ``CVMFS_XATTR_PROTECTED_XATTRS``.
797+
Note that those attributes must be listed in their full name, e.g. ``user.fqrn``,
798+
``user.rawlink`` or ``xfsroot.rawlink``. Most of the extended attributes
799+
will have the prefix ``user.``. If uncertain, they can be looked up in the source
800+
code of ``cvmfs/magic_xattr.cc``.
801+
793802
Repository Publishing
794803
---------------------
795804

0 commit comments

Comments
 (0)