From eb005c6d2a7b60b08356a766d1fb69d4dbbabfd9 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 12 Mar 2010 18:38:10 +0000 Subject: [PATCH] set MN policy to trusted during initial install and update install git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5461 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 64e2202e1..17e4b5ab0 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -1034,7 +1034,7 @@ sub initDB $chtabcmds = "$::XCATROOT/sbin/chtab priority=1 policy.name=root policy.rule=allow;"; $chtabcmds .= - "$::XCATROOT/sbin/chtab priority=1.2 policy.name=$hname policy.rule=allow;"; + "$::XCATROOT/sbin/chtab priority=1.2 policy.name=$hname policy.rule=trusted;"; $chtabcmds .= "$::XCATROOT/sbin/chtab priority=4.4 policy.commands=getpostscript policy.rule=allow;"; $chtabcmds .= @@ -1047,7 +1047,7 @@ sub initDB $chtabcmds = "$::XCATROOT/sbin/chtab priority=1 policy.name=root policy.rule=allow;"; $chtabcmds .= - "$::XCATROOT/sbin/chtab priority=1.2 policy.name=$hname policy.rule=allow;"; + "$::XCATROOT/sbin/chtab priority=1.2 policy.name=$hname policy.rule=trusted;"; $chtabcmds .= "$::XCATROOT/sbin/chtab priority=2 policy.commands=getbmcconfig policy.rule=allow;"; $chtabcmds .= @@ -1080,6 +1080,20 @@ sub initDB # adding otherpkgs and syncfiles new postscripts for migration if ($::UPDATEINSTALL) { + # setup Management Node policy to trusted + my $chtabcmds; + $chtabcmds = + "$::XCATROOT/sbin/chtab priority=1.2 policy.name=$hname policy.rule=trusted"; + my $outref = xCAT::Utils->runcmd("$chtabcmds", 0); + if ($::RUNCMD_RC != 0) + { + xCAT::MsgUtils->message('E', + "Could not update policy.name=$hname rule."); + } + else + { + verbose("Updated policy definition for MN."); + } # check to see if otherpkgs in the postscripts table # if it does do not change it, otherwise put in postbootscripts