Skip to content

Default ACLs lost when copying directories from /etc/skel #1646

@ikerexxe

Description

@ikerexxe

Commit faeab50e replaced perm_copy_file() with perm_copy_path() wrapper that uses perm_copy_fd() underneath. perm_copy_file() copies both access + default ACLs. According to the libacl maintainer, perm_copy_fd() only copies access ACLs, thus loosing admin-configured ACL policies.

Possible fix

Revert perm_copy_path() back to perm_copy_file() for directories/special files, keeping perm_copy_fd() only for regular files.

Another possible fix

Migrate to gnulib modules and use get-permissions and set-permissions instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions