From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4564AEB8.3050902@redhat.com> Date: Wed, 22 Nov 2006 15:10:32 -0500 From: Daniel J Walsh MIME-Version: 1.0 To: Joshua Brindle CC: Stephen Smalley , Karl MacMillan , "Christopher J. PeBenito" , SE Linux Subject: Re: More small fixes to policycoreutils References: <6FE441CD9F0C0C479F2D88F959B015885C7D9F@exchange.columbia.tresys.com> In-Reply-To: <6FE441CD9F0C0C479F2D88F959B015885C7D9F@exchange.columbia.tresys.com> Content-Type: multipart/mixed; boundary="------------060407060204030508030305" Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov This is a multi-part message in MIME format. --------------060407060204030508030305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit run_init patch for call pam_acct_mgmt --------------060407060204030508030305 Content-Type: text/x-patch; name="run_init.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="run_init.diff" diff --exclude-from=exclude --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/run_init/run_init.c policycoreutils-1.33.4/run_init/run_init.c --- nsapolicycoreutils/run_init/run_init.c 2006-11-16 17:14:27.000000000 -0500 +++ policycoreutils-1.33.4/run_init/run_init.c 2006-11-22 14:11:25.000000000 -0500 @@ -132,6 +132,14 @@ result = 1; /* user authenticated OK! */ } + /* If we were successful, call pam_acct_mgmt() to reset the + * pam_tally failcount. + */ + if (result && (PAM_SUCCESS != pam_acct_mgmt(pam_handle, 0)) ) { + fprintf(stderr, _("failed to get account information\n")); + exit(-1); + } + /* We're done with PAM. Free `pam_handle'. */ pam_end(pam_handle, PAM_SUCCESS); --------------060407060204030508030305-- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.