Compare commits

...

26 Commits

Author SHA1 Message Date
Aaron Rainbolt 45476314b6 PPA build
4 days ago
Aaron Rainbolt 6a15c4a9ef Adjust deps
4 days ago
Aaron Rainbolt 6810234f8f Bump Standards-Version
4 days ago
Aaron Rainbolt 66ccff86ad Drop enable-bidirectional-communication.patch
4 days ago
Aaron Rainbolt 73d3ada062 Update copyright file
4 days ago
Aaron Rainbolt f0eb459607 Bump version for new upstream release
4 days ago
Aaron Rainbolt 6f34f5cdc2 Add bidirectional communication patch
6 months ago
Simon Quigley 06b152504d Upload to Noble.
8 months ago
Simon Quigley 88a7bd0ea1 Update copyright years.
8 months ago
Simon Quigley c58cc73098 Bump build dependencies.
8 months ago
Simon Quigley 5cff75e023 New upstream release.
8 months ago
Simon Quigley 46d06f9171 Add a -E option, exposing all environment variables (LP: #2039093).
8 months ago
Simon Quigley d81b1c7857 Upload to Mantic.
11 months ago
Simon Quigley b9fa753636 Install new lxqtdoas binary.
11 months ago
Simon Quigley 57bbb02b3c Bump build dependencies.
11 months ago
Simon Quigley 40fe6cb0c8 New upstream release.
11 months ago
Aaron Rainbolt 96907a596d Updated copyright file.
1 year ago
Aaron Rainbolt 16f77640b3 Removed override_dh_missing.
1 year ago
Aaron Rainbolt 225f120d7e Bumped Standards-Version.
1 year ago
Aaron Rainbolt 11a2e40441 Revert a sync from Debian.
1 year ago
Aaron Rainbolt 3f6e60c63f Sync with archive.
1 year ago
Simon Quigley 7e03c7755d Upload to Lunar.
2 years ago
Simon Quigley 81d4be6dda Bump build dependencies in debian/control.
2 years ago
Simon Quigley ef154be157 Lubuntuify the package slightly, to make debhelper happy.
2 years ago
Simon Quigley a211ad2c95 Fix the watch file, for real this time.
2 years ago
Simon Quigley cd3c316c1c New upstream release.
2 years ago

58
debian/changelog vendored

@ -1,3 +1,61 @@
lxqt-sudo (2.0.0-0ubuntu1~ppa1) oracular; urgency=medium
* New upstream release.
* Update copyright file.
* Drop enable-bidirectional-communication.patch, applied upstream.
* Bump Standards-Version to 4.7.0, no changes necessary.
* Adjust dependencies.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Thu, 27 Jun 2024 16:17:43 -0500
lxqt-sudo (1.4.0-0ubuntu2) noble; urgency=medium
* Patch in bidirectional communication support (see
https://github.com/lxqt/lxqt-sudo/pull/210)
* Updated copyright file.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Thu, 11 Jan 2024 19:26:41 +0000
lxqt-sudo (1.4.0-0ubuntu1) noble; urgency=medium
* New upstream release.
* Bump build dependencies.
* Update copyright years.
-- Simon Quigley <tsimonq2@ubuntu.com> Sun, 12 Nov 2023 19:13:47 -0600
lxqt-sudo (1.3.0-0ubuntu1.1) mantic; urgency=medium
* Add a -E option, exposing all environment variables (LP: #2039093).
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 11 Oct 2023 12:02:21 -0500
lxqt-sudo (1.3.0-0ubuntu1) mantic; urgency=medium
* New upstream release.
* Bump build dependencies.
* Install new lxqtdoas binary.
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 11 Aug 2023 09:51:31 -0500
lxqt-sudo (1.2.0-1ubuntu1) lunar; urgency=medium
* Reverted a sync from Debian.
* Bumped Standards-Version to 4.6.2, no changes necessary.
* Removed obsolete 'override_dh_missing' section from debian/rules.
* Updated copyright file.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Thu, 16 Feb 2023 20:20:33 -0600
lxqt-sudo (1.2.0-0ubuntu1) lunar; urgency=medium
* New upstream release.
* Fix the watch file, for real this time.
* Lubuntuify the package slightly, to make debhelper happy.
* Bump build dependencies in debian/control.
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 18 Nov 2022 18:51:41 -0600
lxqt-sudo (1.1.0-1) experimental; urgency=medium
* New upstream release.

22
debian/control vendored

@ -1,5 +1,6 @@
Source: lxqt-sudo
Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
XSBC-Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
Uploaders: Alf Gaida <agaida@siduction.org>,
ChangZhuo Chen (陳昌倬) <czchen@debian.org>,
Andrew Lee (李健秋) <ajqlee@debian.org>,
@ -8,14 +9,15 @@ Uploaders: Alf Gaida <agaida@siduction.org>,
Section: x11
Priority: optional
Build-Depends: debhelper-compat (= 13),
libkf5windowsystem-dev,
liblxqt1-dev (>= 1.1.0),
libqt5svg5-dev,
libqt5x11extras5-dev,
libx11-dev
Standards-Version: 4.6.1
Vcs-Browser: https://salsa.debian.org/cgit/pkg-team/lxqt-sudo
Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-sudo.git
libkf6windowsystem-dev,
liblxqt2-dev (>= 1.4.0),
libx11-dev,
qt6-svg-dev
Standards-Version: 4.7.0
Vcs-Browser: https://git.lubuntu.me/Lubuntu/lxqt-sudo-packaging
Vcs-Git: https://git.lubuntu.me/Lubuntu/lxqt-sudo-packaging.git
XS-Debian-Vcs-Browser: https://salsa.debian.org/cgit/pkg-team/lxqt-sudo
XS-Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-sudo.git
Homepage: https://github.com/lxqt/lxqt-sudo
Rules-Requires-Root: no
@ -34,7 +36,7 @@ Package: lxqt-sudo-l10n
Architecture: all
Multi-Arch: foreign
Section: localization
Depends: qttranslations5-l10n, ${misc:Depends}
Depends: qt6-translations-l10n, ${misc:Depends}
Description: Language package for lxqt-sudo
The l10n files for lxqt-sudo.
.

11
debian/copyright vendored

@ -3,14 +3,15 @@ Upstream-Name: lxqt-sudo
Source: https://github.com/lxqt/lxqt-sudo
Files: *
Copyright: 2015-2022 LXQt team
Copyright: 2015-2024 LXQt team
2015-2018 Palo Kisa <palo.kisa@gmail.com>
License: LGPL-2.1+
Files: debian/*
Copyright: 2021-2022, Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
2015-2019, Alf Gaida <agaida@siduction.org>
2015, Andrew Lee (李健秋) <ajqlee@debian.org>
2015, ChangZhuo Chen (陳昌倬) <czchen@debian.org>
Copyright: 2021-2024 Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
2015-2019 Alf Gaida <agaida@siduction.org>
2015 Andrew Lee (李健秋) <ajqlee@debian.org>
2015 ChangZhuo Chen (陳昌倬) <czchen@debian.org>
License: LGPL-2.1+
License: LGPL-2.1+

@ -1,6 +1,8 @@
usr/bin/lxdoas
usr/bin/lxqt-sudo
usr/bin/lxsu
usr/bin/lxsudo
usr/share/man/man1/lxdoas.1
usr/share/man/man1/lxqt-sudo.1
usr/share/man/man1/lxsu.1
usr/share/man/man1/lxsudo.1

@ -0,0 +1,80 @@
Description: Add a -E option, exposing all environment variables
Some system tools (such as ubuntu-release-upgrader) read XDG* (etc.), so allow the user to opt-in to preserving those.
Author: Simon Quigley <tsimonq2@lubuntu.me>
Origin: upstream
Forwarded: https://github.com/lxqt/lxqt-sudo/pull/204
Last-Update: 2023-10-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/sudo.cpp
+++ b/sudo.cpp
@@ -83,6 +83,7 @@ namespace
" -s|--su Use %3(1) as backend.\n"
" -d|--sudo Use %2(8) as backend.\n"
" -a|--doas Use %4(1) as backend.\n"
+ " -E|--keep-env Preserve all existing environment variables.\n"
" command Command to run.\n"
" arguments Optional arguments for command.\n\n").arg(app_master).arg(sudo_prog).arg(su_prog).arg(doas_prog);
if (!err.isEmpty())
@@ -113,8 +114,13 @@ namespace
};
assert_helper h;
- inline std::string env_workarounds()
+ inline std::string env_workarounds(bool preserveEnv)
{
+ if (preserveEnv) {
+ std::cerr << LXQTSUDO << ": Preserving all environment variables.\n";
+ return "";
+ }
+
std::cerr << LXQTSUDO << ": Stripping child environment except for: ";
std::ostringstream left_env_params;
std::copy(ALLOWED_VARS, ALLOWED_END - 1, std::ostream_iterator<const char *>{left_env_params, ","});
@@ -195,6 +201,10 @@ int Sudo::main()
{
mBackend = BACK_DOAS;
mArgs.removeAt(0);
+ } else if (QStringLiteral("-E") == arg1 || QStringLiteral("--keep-env") == arg1)
+ {
+ mPreserveEnv = true;
+ mArgs.removeAt(0);
}
}
//any other arguments we simply forward to su/sudo
@@ -286,11 +296,11 @@ void Sudo::child()
switch (mBackend)
{
case BACK_SUDO:
- preserve_env_param = "--preserve-env=";
-
- preserve_env_param += env_workarounds();
-
- *(param_arg++) = preserve_env_param.c_str(); //preserve environment
+ if(!mPreserveEnv) {
+ preserve_env_param = "--preserve-env=";
+ preserve_env_param += env_workarounds(mPreserveEnv);
+ *(param_arg++) = preserve_env_param.c_str(); //preserve environment
+ }
*(param_arg++) = "/bin/sh";
break;
case BACK_DOAS:
@@ -298,7 +308,7 @@ void Sudo::child()
[[fallthrough]];
case BACK_SU:
case BACK_NONE:
- env_workarounds();
+ env_workarounds(mPreserveEnv);
break;
}
--- a/sudo.h
+++ b/sudo.h
@@ -81,6 +81,7 @@ private:
int mChildPid;
int mPwdFd;
int mRet;
+ bool mPreserveEnv = false;
};
#endif //SUDO_H

@ -0,0 +1 @@
bypass-envvar-allowlist.patch

3
debian/rules vendored

@ -7,9 +7,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh ${@} --buildsystem cmake
override_dh_missing:
dh_missing --fail-missing
override_dh_auto_configure:
dh_auto_configure -- \
-DUPDATE_TRANSLATIONS=OFF \

6
debian/watch vendored

@ -1,3 +1,5 @@
version=4
opts="pgpsigurlmangle=s/$/.asc/" \
https://github.com/lxqt/lxqt-sudo/releases .*/lxqt-sudo-([\d\.]+).tar.xz
opts="searchmode=plain, \
pgpsigurlmangle=s/$/.asc/, \
uversionmangle=s/(\d+\.\d+\.\d+).*/$1/" \
https://api.github.com/repos/lxqt/@PACKAGE@/releases https:\/\/github.com\/lxqt\/@PACKAGE@\/releases\/download\/@ANY_VERSION@\/@PACKAGE@-@ANY_VERSION@.tar.xz

Loading…
Cancel
Save