Changeset 500 in openpam for trunk


Ignore:
Timestamp:
Nov 22, 2011, 12:07:03 PM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

Forgotten in previous commit: check the ownership and permissions of the
policy file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_configure.c

    r497 r500  
    370370                    "%s: %m", filename);
    371371                return (PAM_SUCCESS);
     372        }
     373        if (openpam_check_desc_owner_perms(filename, fileno(f)) != 0) {
     374                fclose(f);
     375                return (PAM_SYSTEM_ERR);
    372376        }
    373377        this = NULL;
Note: See TracChangeset for help on using the changeset viewer.