libcfg.lib: do not check for configuration files groups and permissions
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
ffe2b496d1
commit
4edf024f5f
@ -27,6 +27,12 @@ Changes in version 1.14.2
|
||||
Remove the variable 'rpmbuild_group': it's no more needed. Personal data is
|
||||
located in the files ~/.autospec and ~/.autospec.d/*.conf
|
||||
|
||||
+ update
|
||||
* lib/libcfg.lib - Davide Madrisan:
|
||||
config.security(): do not check for configuration files groups and
|
||||
permissions. These files are now own by root and never contain sensible
|
||||
data (that is passwords).
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Changes in version 1.14.1 - _TO*Hacklab release
|
||||
|
@ -61,15 +61,6 @@ function config.security() {
|
||||
[ "$(groups 2>/dev/null | grep $packager_group 2>/dev/null)" ] ||
|
||||
notify.error $"\
|
||||
user \`$(id -nu)' does not belong to group \`$packager_group'"
|
||||
|
||||
# security check for configuration file(s) groups and permissions
|
||||
for f in ${default_cfg[0]}; do
|
||||
cfg_file_mod=(`find $f -printf "%g %m" 2>/dev/null`)
|
||||
[[ ${cfg_file_mod[0]} = $packager_group &&
|
||||
"`expr ${cfg_file_mod[1]} : '.*\(.\)'`" = 0 ]] ||
|
||||
notify.warning $"\
|
||||
the file \`$f' should be readable only by the group \`$packager_group'"
|
||||
done
|
||||
else
|
||||
notify.warning "\`packager_group' "$"unset in the configuration files"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user