Define policy

i10-beta
Arkady L. Shane 4 weeks ago
parent 60decf8b76
commit 96b79a80b8
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -1,4 +1,4 @@
From 4ec052241411a1f0543cc70d3fa3ca672374ce15 Mon Sep 17 00:00:00 2001
From 504705b3b9538c3a9b7c3a216caa653f60c4a3ef Mon Sep 17 00:00:00 2001
From: tigro <tigro@msvsphere-os.ru>
Date: Wed, 8 Jan 2025 22:11:14 +0300
Subject: [PATCH] Added GOST 10.0 policy also added experimental PAM generator
@ -35,7 +35,7 @@ Subject: [PATCH] Added GOST 10.0 policy also added experimental PAM generator
python/cryptopolicies/alg_lists.py | 35 +--
python/cryptopolicies/cryptopolicies.py | 7 +-
python/policygenerators/__init__.py | 2 +
python/policygenerators/auth.py | 36 ++++
python/policygenerators/auth.py | 37 ++++
.../fedora-crypto-policies.code-workspace | 0
python/policygenerators/openssl.py | 23 ++
scripts/auth_apply.sh | 204 ++++++++++++++++++
@ -144,7 +144,7 @@ Subject: [PATCH] Added GOST 10.0 policy also added experimental PAM generator
tests/outputs/GOST-ONLY-sequoia.txt | 51 +++++
tests/outputs/LEGACY-auth.txt | 0
.../outputs/LEGACY:AD-SUPPORT-LEGACY-auth.txt | 0
140 files changed, 2009 insertions(+), 17 deletions(-)
140 files changed, 2010 insertions(+), 17 deletions(-)
create mode 100644 authselect_policies/minimal_gost/README
create mode 100644 authselect_policies/minimal_gost/REQUIREMENTS
create mode 100644 authselect_policies/minimal_gost/dconf-db
@ -1233,10 +1233,10 @@ index 0e3013e..06553f3 100644
]
diff --git a/python/policygenerators/auth.py b/python/policygenerators/auth.py
new file mode 100644
index 0000000..05e3ef9
index 0000000..f2f90eb
--- /dev/null
+++ b/python/policygenerators/auth.py
@@ -0,0 +1,36 @@
@@ -0,0 +1,37 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+# Copyright (c) 2019 Red Hat, Inc.
@ -1254,6 +1254,7 @@ index 0000000..05e3ef9
+
+ @classmethod
+ def generate_config(cls, unscoped_policy):
+ policy = unscoped_policy.scoped({'auth'})
+ p = policy.enabled
+ sep = '\n'
+ s = ''

Loading…
Cancel
Save