Univention Bugzilla – Attachment 10414 Details for
Bug 51608
Wrong file ownership for serviceprovider_enabled_groups.json
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
51608.patch (text/plain), 1017 bytes, created by
Florian Best
on 2020-07-03 23:24:33 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2020-07-03 23:24:33 CEST
Size:
1017 bytes
patch
obsolete
>diff --git a/saml/univention-saml/listener/univention-saml-groups.py b/saml/univention-saml/listener/univention-saml-groups.py >index d6b48fdb5d..df7bb70db5 100644 >--- a/saml/univention-saml/listener/univention-saml-groups.py >+++ b/saml/univention-saml/listener/univention-saml-groups.py >@@ -43,7 +43,7 @@ description = 'Write SAML enabled groups to json file, to be read by the service > filter = '(objectClass=univentionSAMLEnabledGroup)' > attributes = ['enabledServiceProviderIdentifierGroup'] > path = '/etc/simplesamlphp/serviceprovider_enabled_groups.json' >-tmp_path = '/tmp/serviceprovider_enabled_groups.json' >+tmp_path = '/etc/simplesamlphp/serviceprovider_enabled_groups.json.new' > uid = pwd.getpwnam("samlcgi").pw_uid > gid = grp.getgrnam("samlcgi").gr_gid > >@@ -86,7 +86,7 @@ def handler(dn, new, old): > > with open(tmp_path, 'w+') as outfile: > json.dump(data, outfile) >- os.chmod(tmp_path, 0600) >+ os.chmod(tmp_path, 0o600) > os.chown(tmp_path, uid, gid) > shutil.move(tmp_path, path) > finally:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51608
: 10414