C Roff Shell M4 Yacc Makefile Other
Clone or download
karelzak su: add --whitelist-environment
* usable with --login to whitelist specified environment variables

* the list is ignored for the core variables like HOME, SHELL, USER,
  LOGNAME and PATH (su --login always resets these variables)

Note that su(1) requires password and after successful authentication
user has full control over the session, so he can set arbitrary
environment variables. The whitelist makes things more user friendly

The patch removes unnecessary optimization when allocate environ[]. It
seems better to keep all in glibc hands and just reset the environment
array only.

Addresses: #221
Signed-off-by: Karel Zak <kzak@redhat.com>
Latest commit 75efef9 Aug 10, 2018
Failed to load latest commit information.
Documentation libfdisk: Accept negative numbers for last sector input Jul 31, 2018
bash-completion bash-completion: add swapon specifiers to completion May 28, 2018
config build-sys: gtkdoc-fixxref v1.27 requires module option Feb 1, 2018
disk-utils man pages: Remove "left" (or change to "l") in the column formats of … Aug 6, 2018
include lib/mangle: const quialifier cleanup Jul 20, 2018
lib lib/colors:: fix compiler warnings [-Wcast-qual] Jul 23, 2018
libblkid libblkid: use xstrncpy() for PT id [coverity scan] Jul 25, 2018
libfdisk libfdisk: Accept negative numbers for last sector input Jul 31, 2018
libmount libmount: report context paths on debug Aug 14, 2018
libsmartcols libsmartcols: don't print empty column Jun 4, 2018
libuuid build: Add missing -lintl linkage to lib{smartcols,uuid} Apr 9, 2018
login-utils su: add --whitelist-environment Aug 15, 2018
m4 misc: fix typos using codespell Feb 16, 2018
misc-utils logger: add -S to the man page Aug 10, 2018
po Fix translation typo Aug 3, 2018
schedutils man: Use the correct macro for a font change of one argument May 23, 2018
sys-utils build-sys: fix typo in man install Aug 15, 2018
term-utils agetty.8: Avoid a warning about an unbreakable line Aug 6, 2018
tests tests: add cal --span tests Aug 7, 2018
text-utils man pages: Remove "left" (or change to "l") in the column formats of … Aug 6, 2018
tools tools: improve checkmans Mar 1, 2018
.editorconfig add .editorconfig Jan 24, 2016
.gitignore choom: new command to adjust OOM-killer score value Apr 16, 2018
.travis-functions.sh travis: homebrew/dupes was deprecated Mar 9, 2018
.travis.yml travis: enable osx root checks Mar 7, 2018
AUTHORS docs: update AUTHORS file Mar 21, 2018
COPYING docs: corrections to FSF license files, and postal address Feb 24, 2012
ChangeLog build-sys: use AUTOMAKE_OPTIONS = gnu May 26, 2011
Makefile.am build: use --runstatedir instead of --localstatedir Jul 31, 2017
NEWS build-sys: release++ (v2.32) Mar 21, 2018
README docs: add information about mailing list rejection Jun 1, 2017
README.licensing COPYING: fix grammar of referring phrase, and indicate location better Oct 8, 2013
autogen.sh build-sys: improve bison version detection Apr 30, 2018
configure.ac su: add --whitelist-environment Aug 15, 2018
util-linux.doap docs: replace FTP by HTTPS in kernel.org URLs Dec 19, 2016



		util-linux is a random collection of Linux utilities

     Note: for the years 2006-2010 this project was named "util-linux-ng".


      E-MAIL: util-linux@vger.kernel.org
      URL:    http://vger.kernel.org/vger-lists.html#util-linux

      The mailing list will reject email messages that contain:
       - more than 100K characters
       - html
       - spam phrases/keywords
      See: http://vger.kernel.org/majordomo-info.html#taboo


      #util-linux at freenode.net:


      The IRC channel and Mailing list are for developers and project
      maintainers. For end users it is recommended to utilize the
      distribution's support system.


      E-MAIL: util-linux@vger.kernel.org
      Web:    https://github.com/karelzak/util-linux/issues

      This project has no resources to provide support for distribution specific
      issues. For end users it is recommended to utilize the distribution's
      support system.


      PO files are maintained by:


      Standard releases:
	     major = fatal and deep changes
	     minor = typical release with new features
	     maint = maintenance releases; bug fixes only

      Development releases:


 Download archive:

 SCM (Source Code Management) Repository:

    Primary repository:
	  git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git

    Backup repository:
	  git clone git://github.com/karelzak/util-linux.git

    Web interfaces:

      Note: the GitHub repository may contain temporary development branches too.

      The kernel.org repository contains master (current development) and stable/*
      (maintenance) branches only. All master or stable/* changes are always pushed
      to both repositories at the same time.

    Repository Branches: 'git branch -a'
	  master branch
	   - current development
	   - the source for stable releases when deemed ready.
	   - day-to-day status is: 'it works for me'. This means that its
	     normal state is useful but not well tested.
	   - long-term development or invasive changes in active development are
	     forked into separate 'topic' branches from the tip of 'master'.

	  stable/ branches
	   - public releases
	   - branch name: stable/v<major>.<minor>.
	   - created from the 'master' branch after two or more release
	     candidates and the final public release. This means that the stable
	     releases are committed, tagged, and reachable in 'master'.
	   - these branches then become forked development branches. This means
	     that any changes made to them diverge from the 'master' branch.
	   - maintenance releases are part of, and belong to, their respective
	     stable branch. As such, they are tags(<major>.<minor>.<maint>) and
	     not branches of their own. They are not part of, visible in, or
	     have anything to do with the 'master' development branch. In git
	     terminology: maintenance releases are not reachable from 'master'.
	   - when initially cloned (as with the 'git clone' command given above)
	     these branches are created as 'remote tracking branches' and are
	     only visible by using the -a or -r options to 'git branch'. To
	     create a local branch use the desired tag with this command:
	     'git checkout -b v2.29.2 v2.29.2'

    Tags: 'git tag'
	   - a new tag object is created for every release.
	   - tag name: v<version>.
	   - all tags are signed by the maintainer's PGP key.

    Known Bugs:
	- don't use tag v2.13.1 (created and published by mistake),
	  use v2.13.1-REAL instead.


 1) development (branch: <master>)

 2) master release (tags: v2.29-rc1, v2.29-rc2, v2.29, branch: <master>)

 3) development (work on v2.30, branch: <master>)

 4) fork -- create a new branch <stable/v2.29> based on tag v2.29

     4a) new patches or cherry-pick patches from <master> (branch: <stable/v2.29>)

     4b) stable release (tag: v2.29.1, branch: <stable/v2.29>)

     4c) more patches; another release (tag: v2.29.2, branch: <stable/v2.29>)

 5) master release v2.30 (branch: <master>)

where 3) and 4) happen simultaneously.