Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/polkit: update to 122 release (+)
Add DUKTAPE (set by default) and SPIDERMONKEY options Add support of procctl(2) in pkexec program Differential Revision: https://reviews.freebsd.org/D37137 With hat: desktop
- Loading branch information
Showing
7 changed files
with
85 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
TIMESTAMP = 1656189343 | ||
SHA256 (polkit-0.120.tar.gz) = ee7a599a853117bf273548725719fa92fabd2f136915c7a4906cee98567aee03 | ||
SIZE (polkit-0.120.tar.gz) = 1626659 | ||
SHA256 (e7f3d9e8341d.patch) = 9a84b59d38b3f86c70c5fc3a28cbfe8d7a22cf190eb20ff433f7f53f5ff73a9a | ||
SIZE (e7f3d9e8341d.patch) = 1201 | ||
SHA256 (a2bf5c9c83b6.patch) = 5930a48bf4262a7c89f8737a1a5a648bd41cfdb6476dcca1140cba6555b67d2c | ||
SIZE (a2bf5c9c83b6.patch) = 2070 | ||
TIMESTAMP = 1666804675 | ||
SHA256 (polkit-122.tar.gz) = 0d69656d60800835c3d7d1f0a8362b32e1ae3ace2875a35bb624296fc52d5dc4 | ||
SIZE (polkit-122.tar.gz) = 744767 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- src/polkitbackend/meson.build.orig 2022-10-26 12:12:24 UTC | ||
+++ src/polkitbackend/meson.build | ||
@@ -30,7 +30,6 @@ c_flags = [ | ||
'-DPACKAGE_DATA_DIR="@0@"'.format(pk_prefix / pk_datadir), | ||
'-DPACKAGE_SYSCONF_DIR="@0@"'.format(pk_prefix / pk_sysconfdir), | ||
'-D_XOPEN_SOURCE=700', | ||
- '-D_GNU_SOURCE=1', | ||
] | ||
|
||
if js_engine == 'duktape' | ||
@@ -61,7 +60,7 @@ libpolkit_backend = static_library( | ||
|
||
install_data( | ||
'50-default.rules', | ||
- install_dir: pk_pkgdatadir / 'rules.d', | ||
+ install_dir: pk_pkgsysconfdir / 'rules.d', | ||
) | ||
|
||
program = 'polkitd' |
33 changes: 0 additions & 33 deletions
33
sysutils/polkit/files/patch-src_polkitbackend_polkitbackendjsauthority.cpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- src/programs/pkexec.c.orig 2022-07-11 08:46:06 UTC | ||
+++ src/programs/pkexec.c | ||
@@ -37,6 +37,11 @@ | ||
#include <sys/prctl.h> | ||
#endif | ||
|
||
+#ifdef __FreeBSD__ | ||
+#include <signal.h> | ||
+#include <sys/procctl.h> | ||
+#endif | ||
+ | ||
#include <glib/gi18n.h> | ||
|
||
#ifdef POLKIT_AUTHFW_PAM | ||
@@ -729,10 +734,17 @@ main (int argc, char *argv[]) | ||
} | ||
|
||
/* make sure we are nuked if the parent process dies */ | ||
-#ifdef __linux__ | ||
+#if defined(__linux__) | ||
if (prctl (PR_SET_PDEATHSIG, SIGTERM) != 0) | ||
{ | ||
g_printerr ("prctl(PR_SET_PDEATHSIG, SIGTERM) failed: %s\n", g_strerror (errno)); | ||
+ goto out; | ||
+ } | ||
+#elif defined(__FreeBSD__) | ||
+ int _sig = SIGTERM; | ||
+ if (procctl (P_PID, 0, PROC_PDEATHSIG_CTL, &_sig) != 0) | ||
+ { | ||
+ g_printerr ("procctl(2) failed: %s\n", g_strerror (errno)); | ||
goto out; | ||
} | ||
#else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters