FreeBSD Bugzilla – Attachment 228095 Details for
Bug 254178
x11/xscreensaver: update to 6.02
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
drop privileges in xscreensaver-gfx
0001-x11-xscreensaver-xscreensaver-gfx-drop-privileges.patch (text/plain), 2.20 KB, created by
Felix Palmen
on 2021-09-21 13:38:10 UTC
(
hide
)
Description:
drop privileges in xscreensaver-gfx
Filename:
MIME Type:
Creator:
Felix Palmen
Created:
2021-09-21 13:38:10 UTC
Size:
2.20 KB
patch
obsolete
>From fc74a136debc0e8f25de6b1ed78158ab5282d320 Mon Sep 17 00:00:00 2001 >From: Felix Palmen <felix@palmen-it.de> >Date: Tue, 21 Sep 2021 15:31:56 +0200 >Subject: [PATCH] x11/xscreensaver: xscreensaver-gfx drop privileges > >--- > .../files/patch-driver_Makefile.in | 13 ++++++++++++ > .../files/patch-driver_xscreensaver-gfx.c | 20 +++++++++++++++++++ > 2 files changed, 33 insertions(+) > create mode 100644 x11/xscreensaver/files/patch-driver_xscreensaver-gfx.c > >diff --git a/x11/xscreensaver/files/patch-driver_Makefile.in b/x11/xscreensaver/files/patch-driver_Makefile.in >index fdebb600355a..ed6e9e95cbb0 100644 >--- a/x11/xscreensaver/files/patch-driver_Makefile.in >+++ b/x11/xscreensaver/files/patch-driver_Makefile.in >@@ -18,3 +18,16 @@ > PAM_DIR = $(PAM_ROOT)/pam.d > PAM_CONF = $(PAM_ROOT)/pam.conf > >+@@ -106,10 +106,10 @@ DAEMON_LIBS = $(LIBS_PRE) $(XINPUT_LIBS) -lX11 $(LIBS_ >+ >+ GFX_DEFS = -DLOCALEDIR=\"$(localedir)\" >+ GFX_SRCS = xscreensaver-gfx.c screens.c windows.c subprocs.c \ >+- exec.c prefsw.c dpms.c fade.c exts.c atomswm.c >++ exec.c prefsw.c dpms.c fade.c exts.c atomswm.c setuid.c >+ GFX_OBJS = xscreensaver-gfx.o screens.o windows.o subprocs.o \ >+ exec.o prefsw.o dpms.o fade.o exts.o atomswm.o \ >+- prefs.o blurb.o atoms.o clientmsg.o xinput.o \ >++ prefs.o blurb.o atoms.o clientmsg.o xinput.o setuid.o \ >+ $(UTILS_BIN)/xmu.o \ >+ $(UTILS_BIN)/yarandom.o \ >+ $(UTILS_BIN)/resources.o \ >diff --git a/x11/xscreensaver/files/patch-driver_xscreensaver-gfx.c b/x11/xscreensaver/files/patch-driver_xscreensaver-gfx.c >new file mode 100644 >index 000000000000..ed61af1dcc99 >--- /dev/null >+++ b/x11/xscreensaver/files/patch-driver_xscreensaver-gfx.c >@@ -0,0 +1,20 @@ >+--- driver/xscreensaver-gfx.c.orig 2021-09-21 12:25:20 UTC >++++ driver/xscreensaver-gfx.c >+@@ -57,6 +57,8 @@ >+ #include "clientmsg.h" >+ #include "xmu.h" >+ >++extern void disavow_privileges (void); >++ >+ saver_info *global_si_kludge = 0; /* I hate C so much... */ >+ >+ char *progclass = 0; >+@@ -559,6 +561,8 @@ main (int argc, char **argv) >+ goto HELP; >+ } >+ } >++ >++ disavow_privileges (); >+ >+ /* Copy the -dpy arg to $DISPLAY for subprocesses. */ >+ s = (char *) malloc (strlen(dpy_str) + 20); >-- >2.32.0 >
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 254178
:
223139
|
226958
|
228092
|
228095
|
228500
|
228515
|
228661
|
229118
|
231805
|
231815
|
231850