samba/ROSA-bind-GID.patch

35 lines
1.5 KiB
Diff
Raw Normal View History

2020-06-08 14:54:15 +09:00
From 371e987689d16074e43fb9f23e775120513f1d7c Mon Sep 17 00:00:00 2001
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Date: Thu, 24 Jan 2019 01:21:29 +0300
Subject: [PATCH] ROSA bind GID
ROSA's bind package must have user group 'named' by default
(package bind-9.11.4-P1-1 does not have it, but I'll make it have it)
2020-03-19 15:40:50 +08:00
diff -ruN samba-4.12.0_orig/python/samba/provision/__init__.py samba-4.12.0/python/samba/provision/__init__.py
--- samba-4.12.0_orig/python/samba/provision/__init__.py 2020-01-31 18:25:36.000000000 +0800
+++ samba-4.12.0/python/samba/provision/__init__.py 2020-03-19 15:31:58.309648340 +0800
@@ -2200,7 +2200,8 @@
2019-01-24 20:16:15 +03:00
root_gid = pwd.getpwuid(root_uid).pw_gid
try:
- bind_gid = findnss_gid(["bind", "named"])
+ # ROSA's bind package must have user group 'named' by default (package 9.11.4-P1-1 does not have it, but I'll make it have it)
+ bind_gid = findnss_gid(["named", "bind"])
except KeyError:
bind_gid = None
2020-03-19 15:40:50 +08:00
diff -ruN samba-4.12.0_orig/source4/scripting/bin/samba_upgradedns samba-4.12.0/source4/scripting/bin/samba_upgradedns
--- samba-4.12.0_orig/source4/scripting/bin/samba_upgradedns 2020-01-31 18:25:36.000000000 +0800
+++ samba-4.12.0/source4/scripting/bin/samba_upgradedns 2020-03-19 15:31:58.309648340 +0800
@@ -76,7 +76,7 @@
2019-01-24 20:16:15 +03:00
def find_bind_gid():
"""Find system group id for bind9
"""
- for name in ["bind", "named"]:
+ for name in ["named", "bind"]:
try:
return grp.getgrnam(name)[2]
except KeyError:
2020-06-08 14:54:15 +09:00
-
2.17.1