fixed /etc/login.def reading on Mageia systems

This commit is contained in:
netblue30 2016-09-15 08:19:29 -04:00
parent 5fe9540312
commit cb42fa600d
4 changed files with 17 additions and 1 deletions

2
README
View file

@ -42,6 +42,8 @@ Aleksey Manevich (https://github.com/manevich)
- fixed several TOCTOU security problems
- added --fix option to firecfg utility
- read_pid fix
- added --x11=block options
- x11 xpra, xphyr, block profile commands
Fred-Barclay (https://github.com/Fred-Barclay)
- added Vivaldi, Atril profiles
- added PaleMoon profile

View file

@ -36,3 +36,15 @@ FAQ: https://firejail.wordpress.com/support/frequently-asked-questions/
`````
# Current development version: 0.9.43
## New command line options
`````
--x11=block
Blacklist /tmp/.X11-unix directory, ${HOME}/.Xauthority and file
specified in ${XAUTHORITY} enviroment variable. Remove DISPLAY and
XAUTHORITY enviroment variables. Stop with error message if X11
abstract socket will be accessible in jail.
`````
## New profile commands
x11 xpra, x11 xephyr, x11 block

View file

@ -1,5 +1,7 @@
firejail (0.9.43) baseline; urgency=low
* development version
* feature: blocking x11 (--x11=block)
* feature: x11 xpra, x11 xephyr, x11 block profile commands
-- netblue30 <netblue30@yahoo.com> Fri, 9 Sept 2016 08:00:00 -0500
firejail (0.9.42) baseline; urgency=low

View file

@ -4,7 +4,7 @@ echo "extracting UID_MIN and GID_MIN"
echo "#ifndef FIREJAIL_UIDS_H" > uids.h
echo "#define FIREJAIL_UIDS_H" >> uids.h
if [ -f /etc/login.defs ]
if [ -r /etc/login.defs ]
then
echo "// using values extracted from /etc/login.defs" >> uids.h
UID_MIN=`awk '/^\s*UID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs`