Forgotten in previous commit: check the ownership and permissions of the

policy file.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@500 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2011-11-22 12:07:03 +00:00
parent 1a4edb80d7
commit 229c006c86

View file

@ -370,6 +370,10 @@ openpam_parse_chain(pam_handle_t *pamh,
"%s: %m", filename);
return (PAM_SUCCESS);
}
if (openpam_check_desc_owner_perms(filename, fileno(f)) != 0) {
fclose(f);
return (PAM_SYSTEM_ERR);
}
this = NULL;
name = NULL;
lineno = 0;