shadow/man/login.defs.d/TCB_SYMLINKS.xml
Serge Hallyn f93cf255d4 Update licensing info
Closes #238

Update all files to list SPDX license shortname.  Most files are
BSD 3 clause license.

The exceptions are:

serge@sl ~/src/shadow$ git grep SPDX-License | grep -v BSD-3-Clause
contrib/atudel:# SPDX-License-Identifier: BSD-4-Clause
lib/tcbfuncs.c: * SPDX-License-Identifier: 0BSD
libmisc/salt.c: * SPDX-License-Identifier: Unlicense
src/login_nopam.c: * SPDX-License-Identifier: Unlicense
src/nologin.c: * SPDX-License-Identifier: BSD-2-Clause
src/vipw.c: * SPDX-License-Identifier: GPL-2.0-or-later

Signed-off-by: Serge Hallyn <serge@hallyn.com>
2021-12-23 19:36:50 -06:00

30 lines
902 B
XML

<!--
SPDX-FileCopyrightText: 2010, Pawel Hajdan
SPDX-License-Identifier: BSD-3-Clause
-->
<varlistentry condition="tcb">
<term><option>TCB_SYMLINKS</option> (boolean)</term>
<listitem>
<para>
If <replaceable>yes</replaceable>, the location of the user tcb
directory to be created will not be automatically set to /etc/tcb/user,
but will be computed depending on the UID of the user, according to
the following algorithm:
<programlisting>
if ( UID is less than 1000) {
use /etc/tcb/user
} else if ( UID is less than 1000000) {
kilos = UID / 1000
use /etc/tcb/:kilos/user
make symlink /etc/tcb/user to the above directory
} else {
megas = UID / 1000000
kilos = ( UID / megas * 1000000 ) / 1000
use /etc/tcb/:megas/:kilos/user
make symlink /etc/tcb/user to the above directory
}
</programlisting>
</para>
</listitem>
</varlistentry>