Page MenuHomeFreeBSD

create sticky bit /usr/obj/home dir
Needs ReviewPublic

Authored by emaste on Jun 10 2024, 8:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 2:23 PM
Unknown Object (File)
Sun, Jun 23, 2:24 PM
Unknown Object (File)
Thu, Jun 13, 5:32 PM
Unknown Object (File)
Jun 12 2024, 2:11 AM
Unknown Object (File)
Jun 11 2024, 4:51 AM
Subscribers

Details

Reviewers
imp
jhb
markj
Summary

This allows users to transparently build FreeBSD from, for example, ~/src/freebsd-src.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

I like the idea, but I wonder if it'd be better to modify pw(8) to create a directory under /usr/obj/home with the correct ownership?

I don't object it, but I somehow feel it might be overkill to create a directory which is not very useful for most of users and systems that are not building codes from their home. Also this is only useful for the code resides under /home/**. How about adding some checks and print information and instructions (of setting MAKEOBJDIRPREFIX or asking superuser to create that directory for them) in Makefile.* or *.mk files?

From a sysadm's perspective, I also not very sure it's a good idea to add one more (and uncommon) place other than /tmp (and /var/tmp) where non-superuser can write files to by default. It might cause a DoS issue to the system.