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:
parent
1a4edb80d7
commit
229c006c86
1 changed files with 4 additions and 0 deletions
|
@ -370,6 +370,10 @@ openpam_parse_chain(pam_handle_t *pamh,
|
||||||
"%s: %m", filename);
|
"%s: %m", filename);
|
||||||
return (PAM_SUCCESS);
|
return (PAM_SUCCESS);
|
||||||
}
|
}
|
||||||
|
if (openpam_check_desc_owner_perms(filename, fileno(f)) != 0) {
|
||||||
|
fclose(f);
|
||||||
|
return (PAM_SYSTEM_ERR);
|
||||||
|
}
|
||||||
this = NULL;
|
this = NULL;
|
||||||
name = NULL;
|
name = NULL;
|
||||||
lineno = 0;
|
lineno = 0;
|
||||||
|
|
Loading…
Reference in a new issue