<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/util-linux, branch su_cmd</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=su_cmd</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=su_cmd'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-04-17T06:32:52+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-04-17T06:32:52+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-17T06:32:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8cdeb571cfbf3bb6edc44779e46537b072b8cd08'/>
<id>urn:sha1:8cdeb571cfbf3bb6edc44779e46537b072b8cd08</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mkfs_vfat: do not generate same volume_id when run in rapid succession</title>
<updated>2023-04-10T12:47:38+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-04-10T12:46:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=611729eff386234b09d40780cdcc21fe72f6f8b8'/>
<id>urn:sha1:611729eff386234b09d40780cdcc21fe72f6f8b8</id>
<content type='text'>
function                                             old     new   delta
mkfs_vfat_main                                      1502    1523     +21

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>runuser,drop: drop runuser, tweak drop</title>
<updated>2023-03-19T10:25:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-19T10:25:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b0e7a401d51402c052563f55331c8b9001a1215c'/>
<id>urn:sha1:b0e7a401d51402c052563f55331c8b9001a1215c</id>
<content type='text'>
Remove the runuser applet, leaving only drop.  Move drop from
util-linux to miscutils.

A command of the form 'drop -c command' causes the BusyBox shell
to be used, just like 'drop' without any arguments.  A simple
OpenSSH configuration with 'drop.exe' as DefaultShell and no
DefaultShellArguments now works both for interactive login and
to run a command.  This is useful for older versions of OpenSSH
which don't support DefaultShellArguments.

Saves 208-232 bytes.
</content>
</entry>
<entry>
<title>runuser,drop: code shrink</title>
<updated>2023-03-19T10:24:43+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-19T10:24:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6de29a7e5346bea9c1c2ad4faf4010ee78f1a97b'/>
<id>urn:sha1:6de29a7e5346bea9c1c2ad4faf4010ee78f1a97b</id>
<content type='text'>
Make quote_arg() always return an allocated string so we can free
it unconditionally.

Always use argv[1] as the first part of the command string.

Saves 48 bytes.
</content>
</entry>
<entry>
<title>runuser: add 'drop' as an alias for runuser</title>
<updated>2023-03-16T15:37:15+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-16T15:21:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=87e7e7b1e61caa87112e3cf6527b606086b6b688'/>
<id>urn:sha1:87e7e7b1e61caa87112e3cf6527b606086b6b688</id>
<content type='text'>
The 'drop' alias for 'runuser' relaxes a number of constraints
that were introduced for compatibility:

- It works even if the current process doesn't have elevated
  privileges.

- It isn't necessary to specify the name of the user.

- Any command can be invoked, not just the BusyBox shell.

- If the command doesn't specify a path 'drop' will first look for
  a BusyBox applet then search PATH.

Adds 320-336 when built along with runuser.

(GitHub issue #240)
</content>
</entry>
<entry>
<title>runuser: new applet</title>
<updated>2023-03-13T10:25:56+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-13T10:25:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=385decd6bf62c116565ece1e0992ff7a79d48474'/>
<id>urn:sha1:385decd6bf62c116565ece1e0992ff7a79d48474</id>
<content type='text'>
Add a cut down, Windows-specific implementation of `runuser` from
util-linux.

This allows elevated privileges to be dropped when running in an
SSH session.  It also works when using `su` or starting busybox-w32
'as administrator'.

There are complications:

- The method used to drop privileges leaves the access token in the
  TokenIsElevated state.  Detecting this is likely to be fragile.

- The unprivileged shell is started by CreateProcessAsUserA().  In
  older versions of Windows this has to be loaded dynamically.

Adds about 900 bytes.

(GitHub issue #240)
</content>
</entry>
<entry>
<title>win32: add support for virtual terminal input</title>
<updated>2023-03-05T12:43:46+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-05T12:34:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8ade494aebe60ea14026d48025a462e6d0b58a7f'/>
<id>urn:sha1:8ade494aebe60ea14026d48025a462e6d0b58a7f</id>
<content type='text'>
Alter certain applets to support virtual terminal input, if enabled.

In many places this is achieved by building previously excluded
upstream terminal-handling code.  The busybox-w32 implementation
of termios(3) functions does nothing if virtual terminal input is
disabled, so it can be invoked regardless.

Some applet-specific terminal-handling code is also required.

This affects less, more, vi and command line editing in the shell.
(The `more` applet isn't enabled in the default configuration.)

This series of patches adds about 1.7KB to the binaries.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-01-05T08:56:27+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-01-05T08:56:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e5e4a2fec5435192d1672e6db2f335cb5e89f877'/>
<id>urn:sha1:e5e4a2fec5435192d1672e6db2f335cb5e89f877</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xxd: use bb_simple_perror_msg... where appropriate</title>
<updated>2023-01-03T07:30:12+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-01-03T07:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=bcb90b9c419c9d616f21d8fc143f9b343c064ed7'/>
<id>urn:sha1:bcb90b9c419c9d616f21d8fc143f9b343c064ed7</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>xxd: fix use of non-initialized data</title>
<updated>2023-01-02T15:59:40+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-01-02T15:59:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=adb1c7dcfe14132f2a5e0947d1af3eb50c751327'/>
<id>urn:sha1:adb1c7dcfe14132f2a5e0947d1af3eb50c751327</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
