Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd new "machinectl shell" command for su(1)-like behaviour #1022
Conversation
poettering
added some commits
Aug 23, 2015
poettering
added
the
machine
label
Aug 24, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on src/shared/utmp-wtmp.c in 023a4f6
Aug 25, 2015
|
redundant |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
poettering
Aug 25, 2015
Owner
what is supposed to be redundant? note that we use the same "store" utmp struct, and first set .ut_type to INIT_PROCESS, then to LOGIN_PROCESS and finally to USER_PROCESS, each time calling write_entry_both()... I don't see what is redundant here?
|
what is supposed to be redundant? note that we use the same "store" utmp struct, and first set |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
replied
Aug 25, 2015
|
d'oh, i misread. Ignore me. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on man/systemd.exec.xml in 023a4f6
Aug 25, 2015
|
Should be "getty-compatible", so missing a hyphen. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Will fix. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on 023a4f6
Aug 25, 2015
|
Tiny nits. Otherwise looks good. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on 506711f
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on 49af9e1
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on b59abc4
Aug 25, 2015
|
Looks good. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on 25300b5
Aug 25, 2015
|
Looks good. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on b9a8d25
Aug 25, 2015
|
Looks good. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on fee6d01
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on a79366e
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on b04c25f
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on src/machine/org.freedesktop.machine1.policy.in in 4289c3a
Aug 25, 2015
|
"is required to acquire" (also above) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Will fix. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on 4289c3a
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on man/machinectl.xml in 91913f5
Aug 25, 2015
|
Note that |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on 91913f5
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on ef3100e
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on c454426
Aug 25, 2015
|
Looks fine. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on 077c8c3
Aug 25, 2015
|
Looks good. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
teg
commented on fbe5507
Aug 25, 2015
|
Looks good. |
added a commit
that referenced
this pull request
Aug 25, 2015
teg
merged commit 498fb56
into
systemd:master
Aug 25, 2015
1 check passed
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
johannbg
Aug 25, 2015
Contributor
Took only 2 years almost to date for 1000200 bz.rh to be implemented. Better late then never ; ) This one will be appreciated by administrators ;)
|
Took only 2 years almost to date for 1000200 bz.rh to be implemented. Better late then never ; ) This one will be appreciated by administrators ;) |
vcaputo
reviewed
Aug 25, 2015
| + the new session from the originating session, so that it | ||
| + shares no process or session properties, and is in a clean and | ||
| + well-defined state. It will be tracked in a new utmp, login, | ||
| + audit and keyring session, and will not inherit an environment |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
poettering
referenced this pull request
Aug 27, 2015
Closed
RFE: machinectl to provide starting new session on local machine #825
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kergalym
commented
Aug 29, 2015
|
For what it needed to use? For safety adjusting in-chroot systems? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
giannisalinetti
Aug 29, 2015
I have a silly question: Is it going to coexist in parallel with the old su?
giannisalinetti
commented
Aug 29, 2015
|
I have a silly question: Is it going to coexist in parallel with the old su? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
poettering
Aug 30, 2015
Member
For what it needed to use? For safety adjusting in-chroot systems?
machinectl shell is useful for getting shell sessions that are entirely isolated from the originating session in local containers or the host.
I have a silly question: Is it going to coexist in parallel with the old su?
Sure.
Please not that this is not a discussion forum, but an issue and patch tracker. Please redirect questions like these elsewhere, such as the systemd mailing list.
Sure. Please not that this is not a discussion forum, but an issue and patch tracker. Please redirect questions like these elsewhere, such as the systemd mailing list. |
poettering commentedAug 24, 2015
This adds a new "machinectl shell" command that we can use for creating su(1)-like privileged sessions, that are fully isolated from the original session.