pkgcheck.checks.acct module¶
Various checks for acct-group and acct-user packages.
- class pkgcheck.checks.acct.AcctCheck(*args)[source]¶
- Bases: - GentooRepoCheck,- RepoCheck- Various checks for acct-* packages. - Verify that acct-* packages do not use conflicting, invalid or out-of-range UIDs/GIDs. This check uses a special file - metadata/qa-policy.conflocated within the repository. It should contain a- user-group-idssection containing two keys:- uid-rangeand- gid-range, which consist of a comma separated list, either- <n>for a single value or- <m>-<n>for a range of values (including both ends). In case this file doesn’t exist or is wrongly defined, this check is skipped.- known_results = frozenset({<class 'pkgcheck.checks.acct.ConflictingAccountIdentifiers'>, <class 'pkgcheck.checks.acct.MissingAccountIdentifier'>, <class 'pkgcheck.checks.acct.OutsideRangeAccountIdentifier'>})¶
 - parse_config_id_range(config: ConfigParser, config_key: str)[source]¶
 - scope = <PackageScope desc='repo' @0x7fb113521d30>¶
 
- class pkgcheck.checks.acct.ConflictingAccountIdentifiers(kind, identifier, pkgs)[source]¶
- Bases: - Error- Same UID/GID is used by multiple packages. - property desc¶
- Result description. 
 - name = 'ConflictingAccountIdentifiers'¶
 
- class pkgcheck.checks.acct.MissingAccountIdentifier(var, **kwargs)[source]¶
- Bases: - VersionResult,- Warning- UID/GID can not be found in account package. - property desc¶
- Result description. 
 - name = 'MissingAccountIdentifier'¶
 
- class pkgcheck.checks.acct.OutsideRangeAccountIdentifier(kind, identifier, **kwargs)[source]¶
- Bases: - VersionResult,- Error- UID/GID outside allowed allocation range. - To view the range accepted for this repository, look at the file - metadata/qa-policy.confin the section- user-group-ids.- property desc¶
- Result description. 
 - name = 'OutsideRangeAccountIdentifier'¶