espie
|
4c84f258a0
|
move the fcntl FD_CLOEXEC code over to User, so that all opened files are
marked that way.
|
2015-05-11 07:32:42 +00:00 |
|
espie
|
75013757cc
|
fetch_user is still taken from default prop...
|
2015-05-10 10:12:40 +00:00 |
|
espie
|
10b7ca049d
|
forgot to synch with the rest
|
2015-05-10 10:00:43 +00:00 |
|
espie
|
43e571d3ca
|
compat with old config breaks new config, so ditch it.
|
2015-05-10 08:40:06 +00:00 |
|
espie
|
b150b6d2ec
|
rename logger interface to desambiguate vs user.
|
2015-05-10 08:14:14 +00:00 |
|
espie
|
191922623a
|
must re-evaluate users after reading config files.
open permanent log correctly.
|
2015-05-10 07:55:35 +00:00 |
|
espie
|
3feef3d107
|
fix writing of permanent logs
|
2015-05-09 19:10:10 +00:00 |
|
espie
|
7ae9845c70
|
document more details. In particular, UNPRIV_USER.
Stress that the old sudo model is going away.
|
2015-05-08 12:47:25 +00:00 |
|
espie
|
194e468c2d
|
introduce "UNPRIV_USER" so that we don't run as root that often.
Move FETCH_USER, LOG_USER to defines, because they're not really
host-dependent.
Keep the equiv so that ppl old config doesn't break...
|
2015-05-08 12:37:16 +00:00 |
|
espie
|
678040b6ac
|
it's all about the names.
Change "sudo" into "as_root" since in many cases, it won't use sudo at all
(and in the end, it WON'T use sudo ever)
|
2015-05-08 12:35:53 +00:00 |
|
espie
|
1b06c79c82
|
make sure we're root when killing stuff. I'm mixing up right and left,
obviously.
|
2015-05-07 12:30:46 +00:00 |
|
espie
|
8be5de417c
|
run kill as root, so trhat ssh masters are cleaned up properly
|
2015-05-06 12:20:35 +00:00 |
|
espie
|
fb70e18c6a
|
don't write this as root
|
2015-05-06 10:58:19 +00:00 |
|
espie
|
a24437df0e
|
open distinfo with the correct user, start clamping down on read rights
as well as write rights.
|
2015-05-06 09:17:28 +00:00 |
|
espie
|
63eb9e7deb
|
fix gid handling: first switch back to being root, THEN set gid, THEN set
uid.
|
2015-05-06 09:16:32 +00:00 |
|
espie
|
d056f13bac
|
duh.
|
2015-05-05 13:38:19 +00:00 |
|
espie
|
3eefd2bae0
|
when local is too local, it can't work. Requires an extra indirection so that
dirs are made with the correct user.
|
2015-05-05 08:55:25 +00:00 |
|
espie
|
a4b8c76e29
|
go back to being groot if we dropped privileges.
|
2015-05-05 08:54:22 +00:00 |
|
espie
|
bb202eca87
|
a few more things to wrap as the correct user
|
2015-05-05 08:52:05 +00:00 |
|
espie
|
f5e1489f2c
|
simplify
|
2015-05-05 08:51:13 +00:00 |
|
espie
|
1532f8dcb3
|
tweak affinity checks to include user in schizophrenic mode
|
2015-05-03 12:26:10 +00:00 |
|
espie
|
7e2d303386
|
store the user if necessary for round-robin mode
|
2015-05-03 12:22:42 +00:00 |
|
espie
|
9d105d68a0
|
that's cute
|
2015-05-03 12:15:05 +00:00 |
|
espie
|
8b8d117cf7
|
do a few more things with the correct user
|
2015-05-03 10:33:59 +00:00 |
|
espie
|
27015304c3
|
add a few more user convenience functions
|
2015-05-03 10:33:02 +00:00 |
|
espie
|
4567e005fe
|
comment on that quirk
|
2015-05-03 10:32:28 +00:00 |
|
espie
|
c4d6e7991c
|
typo in comment
|
2015-05-03 08:15:35 +00:00 |
|
espie
|
34d88abf1c
|
create "common" dirs using install -d and a knob for changing ownership
This should help people working on communalized machines (and also dpb
in round-robin mode).
|
2015-05-03 08:06:03 +00:00 |
|
landry
|
e3e22b4f4d
|
Fix typo, s/unjunk/nojunk/
|
2015-05-02 22:26:00 +00:00 |
|
espie
|
12cded975c
|
forgot to drop user there. Probably a few more left :(
|
2015-05-02 17:43:27 +00:00 |
|
espie
|
758f0bf14e
|
tweak round-robin mode to start at the first id
|
2015-05-02 17:14:50 +00:00 |
|
espie
|
835963be13
|
add options so that dolock will work with install -d options
|
2015-05-02 16:42:55 +00:00 |
|
espie
|
a94b216a03
|
add more knobs to handle directory issues under "hostile" circumstances
|
2015-05-02 16:41:20 +00:00 |
|
espie
|
c58347ffc4
|
thinko
|
2015-05-02 16:07:44 +00:00 |
|
espie
|
2cf5860ba1
|
show the user for roundrobin
|
2015-05-02 15:59:35 +00:00 |
|
espie
|
bcd255ce0a
|
fix gid switch
|
2015-05-02 15:59:06 +00:00 |
|
espie
|
48cc88307a
|
future round-robin mode, one user per-build.
|
2015-05-02 13:12:39 +00:00 |
|
espie
|
909f468aca
|
use the per-user Core thingy: make sure fetch cores are built with the
default prop, and set them to run as fetch_user, so that I can remove
the explicit run_as in the ftp command.
|
2015-05-02 12:55:43 +00:00 |
|
espie
|
f9b1a4dee9
|
allow setting user thru the Core (for future round-robin builds)
|
2015-05-02 11:04:38 +00:00 |
|
espie
|
f9b218eeb3
|
document -m
|
2015-05-02 11:02:54 +00:00 |
|
espie
|
57cc189b56
|
give a -m option to dolock, since it can create directories.
|
2015-05-02 11:00:37 +00:00 |
|
espie
|
e2f35e7d02
|
move the user handling code to a separate file.
remove "run_as" for open, we can do things directly.
More explicit code on open.
|
2015-05-02 09:44:40 +00:00 |
|
espie
|
70de7e8c72
|
fix creation of path log files
|
2015-05-01 20:49:46 +00:00 |
|
espie
|
d40042f30e
|
lock_user is not needed, defaults to log_user for all practical cases
|
2015-05-01 19:42:54 +00:00 |
|
espie
|
b3c33570ab
|
document ownership of files if you want to separate build/fetch/log
zap lock_user, which isn't actually of any use.
|
2015-05-01 19:41:42 +00:00 |
|
espie
|
c019fe9a6b
|
explain the make_path mechanism
|
2015-05-01 18:29:02 +00:00 |
|
espie
|
2c469073c2
|
give size logs to log_user.
|
2015-05-01 18:27:43 +00:00 |
|
espie
|
7d48bbacf4
|
document the !sudo building model
|
2015-05-01 18:07:31 +00:00 |
|
espie
|
49981f277f
|
color display is there to stay as an option
|
2015-05-01 17:52:00 +00:00 |
|
espie
|
795a501ff4
|
remove debug scaffolding. Found the bug (elsewhere, not surprisingly)
|
2015-05-01 15:41:52 +00:00 |
|