Skip to content

Conversation

swomf
Copy link
Contributor

@swomf swomf commented Sep 13, 2024

The tar command used in the "ROOTFS method" heading loses important permissions data.

For example, unix_chkpwd (a program that uses the setUID bit to allow some lockscreen programs to talk to PAM) may have missing setUID permissions, leading to user lockout.

Using only tar xvf

# ls -l /mnt/usr/bin/unix_chkpwd
-rwxr-xr-x 1 root root 38880 Dec 26  2023 /mnt/usr/bin/unix_chkpwd

Using Gentoo-style tar extraction

# ls -l /mnt/usr/bin/unix_chkpwd
-rwsr-xr-x 1 root root 38880 Dec 26  2023 /mnt/usr/bin/unix_chkpwd

This commit updates the documentation's tar command to match how Gentoo unpacks their tarballs.

@swomf
Copy link
Contributor Author

swomf commented Nov 24, 2024

This is essentially a one-line change. It's odd that the build failed earlier but it should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant