bugfix: add group wheel to SystemGroup
修复管理员用户没有ladmin和lp 组,添加打印任务失败问题,在/etc/cups/cups-files.conf 中的 SystemGroup 项, 添加额外的wheel 组
This commit is contained in:
parent
efe7868eaa
commit
fe6f1638f2
37
add-wheel-to-system-groups.patch
Normal file
37
add-wheel-to-system-groups.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From 89fabc72df74a5af2bec57f0577aea474ca0ec78 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nicolas Fella <nicolas.fella@gmx.de>
|
||||||
|
Date: Fri, 23 Aug 2019 14:43:19 +0200
|
||||||
|
Subject: [PATCH] Add wheel to system groups
|
||||||
|
|
||||||
|
---
|
||||||
|
config-scripts/cups-defaults.m4 | 2 +-
|
||||||
|
configure | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/config-scripts/cups-defaults.m4 b/config-scripts/cups-defaults.m4
|
||||||
|
index b3d96ef0a..517539e1f 100644
|
||||||
|
--- a/config-scripts/cups-defaults.m4
|
||||||
|
+++ b/config-scripts/cups-defaults.m4
|
||||||
|
@@ -245,7 +245,7 @@ AC_ARG_WITH(system_groups, [ --with-system-groups set default system groups
|
||||||
|
AC_MSG_CHECKING(for default system groups)
|
||||||
|
if test -f /etc/group; then
|
||||||
|
CUPS_SYSTEM_GROUPS=""
|
||||||
|
- GROUP_LIST="lpadmin sys system root"
|
||||||
|
+ GROUP_LIST="lpadmin sys system root wheel"
|
||||||
|
for group in $GROUP_LIST; do
|
||||||
|
if test "`grep \^${group}: /etc/group`" != ""; then
|
||||||
|
if test "x$CUPS_SYSTEM_GROUPS" = x; then
|
||||||
|
diff --git a/configure b/configure
|
||||||
|
index 18be3db75..d3df145bc 100755
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -9601,7 +9601,7 @@ else
|
||||||
|
$as_echo_n "checking for default system groups... " >&6; }
|
||||||
|
if test -f /etc/group; then
|
||||||
|
CUPS_SYSTEM_GROUPS=""
|
||||||
|
- GROUP_LIST="lpadmin sys system root"
|
||||||
|
+ GROUP_LIST="lpadmin sys system root wheel"
|
||||||
|
for group in $GROUP_LIST; do
|
||||||
|
if test "`grep \^${group}: /etc/group`" != ""; then
|
||||||
|
if test "x$CUPS_SYSTEM_GROUPS" = x; then
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
Name: cups
|
Name: cups
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.2.13
|
Version: 2.2.13
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: CUPS is the standards-based, open source printing system for linux operating systems.
|
Summary: CUPS is the standards-based, open source printing system for linux operating systems.
|
||||||
License: GPLv2+ and LGPLv2+ with exceptions and AML
|
License: GPLv2+ and LGPLv2+ with exceptions and AML
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
@ -33,6 +33,7 @@ Patch19: cups-filter-debug.patch
|
|||||||
Patch20: cups-dymo-deviceid.patch
|
Patch20: cups-dymo-deviceid.patch
|
||||||
Patch21: custom-option-keywords-did-not.patch
|
Patch21: custom-option-keywords-did-not.patch
|
||||||
Patch22: CVE-2020-3898.patch
|
Patch22: CVE-2020-3898.patch
|
||||||
|
Patch23: add-wheel-to-system-groups.patch
|
||||||
|
|
||||||
Provides: cupsddk cupsddk-drivers cups-filesystem cups-client cups-ipptool cups-lpd
|
Provides: cupsddk cupsddk-drivers cups-filesystem cups-client cups-ipptool cups-lpd
|
||||||
Provides: lpd lpr /usr/bin/lpq /usr/bin/lpr /usr/bin/lp /usr/bin/cancel /usr/bin/lprm /usr/bin/lpstat
|
Provides: lpd lpr /usr/bin/lpq /usr/bin/lpr /usr/bin/lp /usr/bin/cancel /usr/bin/lprm /usr/bin/lpstat
|
||||||
@ -324,6 +325,12 @@ rm -f %{_exec_prefix}/lib/cups/backend/smb
|
|||||||
%doc %{_datadir}/%{name}/www/apple-touch-icon.png
|
%doc %{_datadir}/%{name}/www/apple-touch-icon.png
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 29 2021 guoqinglan <guoqinglan@uniontech.com> 2.2.13-7
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add group wheel to SystemGroup
|
||||||
|
|
||||||
* Wed Jun 09 2021 wangkerong <wangkerong@huawei.com> 2.2.13-6
|
* Wed Jun 09 2021 wangkerong <wangkerong@huawei.com> 2.2.13-6
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- ID:CVE-2021-25317
|
- ID:CVE-2021-25317
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user