add update of policy table with MN name for AIX and Linux, based on name in generated certificate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5163 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
356a91d6d7
commit
fba4a7b612
@ -1038,6 +1038,8 @@ 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;";
|
||||
$chtabcmds .=
|
||||
"$::XCATROOT/sbin/chtab priority=2 policy.commands=getbmcconfig policy.rule=allow;";
|
||||
$chtabcmds .=
|
||||
@ -1240,6 +1242,13 @@ sub genCredentials
|
||||
else
|
||||
{
|
||||
xCAT::MsgUtils->message('I', "Created xCAT certificate.");
|
||||
my $chtabcmds =
|
||||
"$::XCATROOT/sbin/chtab priority=1.2 policy.name=$hname policy.rule=allow;";
|
||||
my $outref = xCAT::Utils->runcmd("$chtabcmds", 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message('E', "Could not create policy definition.$chtabcmds.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user