pkgcheck.checks.acct module¶
Various checks for acct-group and acct-user packages.
- class pkgcheck.checks.acct.AcctCheck(*args)[source]¶
Bases:
GentooRepoCheck,RepoCheckVarious 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 auser-group-idssection containing two keys:uid-rangeandgid-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' @0x7f098b3a96a0>¶
- class pkgcheck.checks.acct.ConflictingAccountIdentifiers(kind, identifier, pkgs)[source]¶
Bases:
ErrorSame UID/GID is used by multiple packages.
- property desc¶
Result description.
- name = 'ConflictingAccountIdentifiers'¶
- class pkgcheck.checks.acct.MissingAccountIdentifier(var, **kwargs)[source]¶
Bases:
VersionResult,WarningUID/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,ErrorUID/GID outside allowed allocation range.
To view the range accepted for this repository, look at the file
metadata/qa-policy.confin the sectionuser-group-ids.- property desc¶
Result description.
- name = 'OutsideRangeAccountIdentifier'¶