dak.acl

Functions

acl_allow(acl_name, fingerprint, sources)

acl_allow_suite(acl_name, fingerprint, suites)

acl_deny(acl_name, fingerprint, sources)

acl_deny_suite(acl_name, fingerprint, suites)

acl_export_per_source(acl_name)

acl_export_per_suite(acl_name)

acl_set_fingerprints(acl_name, entries)

get_fingerprint(entry, session)

get fingerprint for given ACL entry

main([argv])

usage([status])

dak.acl.acl_allow(acl_name: str, fingerprint: str, sources: Iterable[str]) None[source]
dak.acl.acl_allow_suite(acl_name: str, fingerprint: str, suites: Iterable[str]) None[source]
dak.acl.acl_deny(acl_name: str, fingerprint: str, sources: Iterable[str]) None[source]
dak.acl.acl_deny_suite(acl_name: str, fingerprint: str, suites: Iterable[str]) None[source]
dak.acl.acl_export_per_source(acl_name: str) None[source]
dak.acl.acl_export_per_suite(acl_name: str) None[source]
dak.acl.acl_set_fingerprints(acl_name: str, entries: Iterable[str]) None[source]
dak.acl.get_fingerprint(entry: str, session) Optional[Fingerprint][source]

get fingerprint for given ACL entry

The entry is a string in one of these formats:

uid:<uid>
name:<name>
fpr:<fingerprint>
keyring:<keyring-name>
Parameters:
  • entry – ACL entry

  • session – database session

Returns:

fingerprint for the entry

dak.acl.main(argv=None)[source]
dak.acl.usage(status: int = 0) NoReturn[source]