[yast-commit] r58880 - in /trunk/security: ./ package/ src/ testsuite/tests/
Author: jsuchome Date: Thu Oct 1 13:48:57 2009 New Revision: 58880 URL: http://svn.opensuse.org/viewcvs/yast?rev=58880&view=rev Log: - do not save PASS_MIN_LEN if cracklib is disabled - ensure polkit privileges are applied (bnc#541393) - 2.18.3 Modified: trunk/security/VERSION trunk/security/package/yast2-security.changes trunk/security/src/Security.ycp trunk/security/src/dialogs.ycp trunk/security/testsuite/tests/Level1.out trunk/security/testsuite/tests/Level2.out trunk/security/testsuite/tests/Level3.out trunk/security/testsuite/tests/Write.out Modified: trunk/security/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/VERSION?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/VERSION (original) +++ trunk/security/VERSION Thu Oct 1 13:48:57 2009 @@ -1 +1 @@ -2.18.2 +2.18.3 Modified: trunk/security/package/yast2-security.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/package/yast2-security.changes?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/package/yast2-security.changes (original) +++ trunk/security/package/yast2-security.changes Thu Oct 1 13:48:57 2009 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Oct 1 13:40:49 CEST 2009 - jsuchome@suse.cz + +- do not save PASS_MIN_LEN if cracklib is disabled +- ensure polkit privileges are applied (bnc#541393) +- 2.18.3 + +------------------------------------------------------------------- Thu Sep 3 14:41:44 CEST 2009 - jsuchome@suse.cz - added keywords to desktop file Modified: trunk/security/src/Security.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/src/Security.ycp?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/src/Security.ycp (original) +++ trunk/security/src/Security.ycp Thu Oct 1 13:48:57 2009 @@ -12,6 +12,7 @@ module "Security"; textdomain "security"; +import "FileUtils"; import "Pam"; import "PamSettings"; import "Progress"; @@ -539,7 +540,7 @@ Pam::Remove ("cracklib"); // save min pass length - if (Settings["PASS_MIN_LEN"]:"5" != "5") + if (Settings["PASS_MIN_LEN"]:"5" != "5" && Settings["PASSWD_USE_CRACKLIB"]:"no" == "yes") { Pam::Add ("cracklib"); // minlen is part of cracklib Pam::Add (sformat ("cracklib-minlen=%1", Settings["PASS_MIN_LEN"]:"5")); @@ -576,6 +577,11 @@ SCR::Execute(.target.bash, "/sbin/SuSEconfig --module kde3"); SCR::Execute(.target.bash, "/sbin/SuSEconfig --module " + mod); SCR::Execute(.target.bash, "/sbin/SuSEconfig --module permissions"); + + // ensure polkit privileges are applied (bnc #541393) + if (FileUtils::Exists ("/sbin/set_polkit_default_privs")) + SCR::Execute (.target.bash, "/sbin/set_polkit_default_privs"); + SCR::Execute(.target.bash, "/sbin/SuSEconfig --module profiles"); if(Abort()) return false; Modified: trunk/security/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/src/dialogs.ycp?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/src/dialogs.ycp (original) +++ trunk/security/src/dialogs.ycp Thu Oct 1 13:48:57 2009 @@ -758,10 +758,6 @@ Security::PasswordMaxLengths[enc]:8)); continue; } - if (min != 5) - { - UI::ChangeWidget (`id ("PASSWD_USE_CRACKLIB"), `Value, true); - } break; } else if (ret != "PASSWD_ENCRYPTION") { Modified: trunk/security/testsuite/tests/Level1.out URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/testsuite/tests/Level1.out?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/testsuite/tests/Level1.out (original) +++ trunk/security/testsuite/tests/Level1.out Thu Oct 1 13:48:57 2009 @@ -88,5 +88,6 @@ Execute .target.bash "/sbin/SuSEconfig --module kde3" 0 Execute .target.bash "/sbin/SuSEconfig --module kdm3" 0 Execute .target.bash "/sbin/SuSEconfig --module permissions" 0 +Execute .target.bash "/sbin/set_polkit_default_privs" 0 Execute .target.bash "/sbin/SuSEconfig --module profiles" 0 Return true Modified: trunk/security/testsuite/tests/Level2.out URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/testsuite/tests/Level2.out?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/testsuite/tests/Level2.out (original) +++ trunk/security/testsuite/tests/Level2.out Thu Oct 1 13:48:57 2009 @@ -88,5 +88,6 @@ Execute .target.bash "/sbin/SuSEconfig --module kde3" 0 Execute .target.bash "/sbin/SuSEconfig --module kdm3" 0 Execute .target.bash "/sbin/SuSEconfig --module permissions" 0 +Execute .target.bash "/sbin/set_polkit_default_privs" 0 Execute .target.bash "/sbin/SuSEconfig --module profiles" 0 Return true Modified: trunk/security/testsuite/tests/Level3.out URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/testsuite/tests/Level3.out?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/testsuite/tests/Level3.out (original) +++ trunk/security/testsuite/tests/Level3.out Thu Oct 1 13:48:57 2009 @@ -89,5 +89,6 @@ Execute .target.bash "/sbin/SuSEconfig --module kde3" 0 Execute .target.bash "/sbin/SuSEconfig --module kdm3" 0 Execute .target.bash "/sbin/SuSEconfig --module permissions" 0 +Execute .target.bash "/sbin/set_polkit_default_privs" 0 Execute .target.bash "/sbin/SuSEconfig --module profiles" 0 Return true Modified: trunk/security/testsuite/tests/Write.out URL: http://svn.opensuse.org/viewcvs/yast/trunk/security/testsuite/tests/Write.out?rev=58880&r1=58879&r2=58880&view=diff ============================================================================== --- trunk/security/testsuite/tests/Write.out (original) +++ trunk/security/testsuite/tests/Write.out Thu Oct 1 13:48:57 2009 @@ -80,8 +80,7 @@ Read .etc.default.passwd."CRYPT_FILES" nil Write .etc.default.passwd."CRYPT_FILES" "blowfish" true Execute .target.bash_output "pam-config -d --cracklib" $[] -Execute .target.bash_output "pam-config -a --cracklib" $[] -Execute .target.bash_output "pam-config -a --cracklib-minlen=l10" $[] +Execute .target.bash_output "pam-config -d --cracklib-minlen" $[] Execute .target.bash_output "pam-config -d --pwhistory-remember" $[] Write .etc.default.passwd nil true Execute .target.bash "echo 1 > /proc/sys/kernel/sysrq" 0 @@ -89,6 +88,7 @@ Execute .target.bash "/sbin/SuSEconfig --module kde3" 0 Execute .target.bash "/sbin/SuSEconfig --module kdm3" 0 Execute .target.bash "/sbin/SuSEconfig --module permissions" 0 +Execute .target.bash "/sbin/set_polkit_default_privs" 0 Execute .target.bash "/sbin/SuSEconfig --module profiles" 0 Execute .target.bash "/etc/init.d/dhcpd restart" 0 Execute .target.bash "/etc/init.d/dhcpd restart" 0 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn.opensuse.org