summaryrefslogtreecommitdiff
path: root/doc/forum/Support_writing_as_owner__63__/comment_1_794b11f84e0dcb29eba36bdfe1220191._comment
blob: 8edcefaa595074db7165e725f9e1a48aa0f3c8ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2019-03-17T15:13:20Z"
 content="""
If propellor could fork and then setuid, that would allow this. But..

* forking is problimatic in haskell since the RTS state gets shared
  and bad things happen
* the result of the setuid action would need to be communicated back to the
  main process somehow

The other way would be to re-exec propellor as the user 
with a parameter that somehow tells it what action to run. But I don't know
a general way to do that, without some way to name the property.
(A problem which has also complicated some other parts of propellor eg
running inside chroots.)
"""]]