nerdexam
CompTIA

LX0-104 · Question #367

Which of the following statements are true about Linux Extended Attributes on files? (Select TWO correct answers)

The correct answer is A. An attribute value may be empty. B. Attribute storage counts toward disk quota use.. This question examines true statements about the characteristics and usage of Linux Extended Attributes on files.

Administrative Tasks

Question

Which of the following statements are true about Linux Extended Attributes on files? (Select TWO correct answers)

Options

  • AAn attribute value may be empty.
  • BAttribute storage counts toward disk quota use.
  • CAttribute use is enabled by mounting a partition with the attr option.
  • DAn attribute is file, not inode, specific. Thus, a hard linked file in two locations could have different attributes.
  • EAttributes are not used by SELinux and other kernel security modules.

How the community answered

(19 responses)
  • A
    89% (17)
  • C
    5% (1)
  • D
    5% (1)

Why each option

This question examines true statements about the characteristics and usage of Linux Extended Attributes on files.

AAn attribute value may be empty.Correct

Extended attribute values are byte strings, and an empty string (zero-length byte sequence) is a valid and acceptable value for an extended attribute.

BAttribute storage counts toward disk quota use.Correct

Extended attributes consume disk space, as their names and values are stored as part of the file's metadata on the filesystem, and this storage is accounted for against disk quotas.

CAttribute use is enabled by mounting a partition with the attr option.

On modern Linux filesystems like ext4 and XFS, extended attributes are typically enabled by default and do not require a specific `attr` or `user_xattr` mount option to function.

DAn attribute is file, not inode, specific. Thus, a hard linked file in two locations could have different attributes.

Extended attributes are associated with the inode, not individual directory entries (files); therefore, hard-linked files, which share the same inode, will also share the same extended attributes.

EAttributes are not used by SELinux and other kernel security modules.

SELinux and other kernel security modules extensively use extended attributes (specifically within the `security` or `system` namespaces) to store and manage security contexts and policies for files.

Concept tested: Linux Extended Attribute properties

Source: https://man7.org/linux/man-pages/man7/xattr.7.html

Topics

#Extended Attributes#xattrs#file system attributes#disk quota

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice