Page MenuHomeFreeBSD

Fix /root permissions after 'make installworld'
ClosedPublic

Authored by gbe on Oct 29 2023, 6:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 28 2024, 7:04 PM
Unknown Object (File)
Apr 28 2024, 2:22 PM
Unknown Object (File)
Apr 26 2024, 11:45 AM
Unknown Object (File)
Apr 26 2024, 2:09 AM
Unknown Object (File)
Apr 22 2024, 8:46 PM
Unknown Object (File)
Apr 19 2024, 7:39 PM
Unknown Object (File)
Apr 14 2024, 5:33 PM
Unknown Object (File)
Apr 8 2024, 2:07 PM

Details

Summary

According to /etc/mtree/BSD.root.dist /root should have
0750 permissions, but "make installworld" changes these to 0755.

This is caused by the installation of configuration directories
of "csh" and "sh".

Correct these by specifing the correct default /root permissions.

PR: 273342

Test Plan

make buildworld && make instalworld

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gbe requested review of this revision.Oct 29 2023, 6:40 AM

Tested by myself on head, stable/14 and releng/14.0.

Wouldn't it make more sense, to match the default set in etc/mtree/BSD.root.dist? Otherwise, if someone adjusts BSD.root.dist, there's a conflict again (as it already happend with D23392).

This looks like a reasonable quick fix, but I think it's unfortunate the /root directory permissions are specified both in bsd.dirs.mk variables and in the BSD.root.dist mtree file. It looks like the bsd.dirs.mk variables are required because of pkgbase.

This revision is now accepted and ready to land.Nov 14 2023, 10:06 PM