Compare commits
No commits in common. "c8s" and "c8" have entirely different histories.
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1 @@
|
||||
gpm-1.20.6.tar.lzma
|
||||
/gpm-1.20.7.tar.lzma
|
||||
/gpm-1.20.7.tar.xz
|
||||
SOURCES/gpm-1.20.7.tar.xz
|
||||
|
1
.gpm.metadata
Normal file
1
.gpm.metadata
Normal file
@ -0,0 +1 @@
|
||||
79c4c5f4af8000f0bcea98f189b5ecf8b2c94dff SOURCES/gpm-1.20.7.tar.xz
|
@ -1,6 +0,0 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
@ -1,48 +0,0 @@
|
||||
diff -urp gpm-1.20.6.orig/configure.ac gpm-1.20.6/configure.ac
|
||||
--- gpm-1.20.6.orig/configure.ac 2009-08-15 13:39:33.000000000 -0400
|
||||
+++ gpm-1.20.6/configure.ac 2009-08-15 13:51:14.000000000 -0400
|
||||
@@ -129,6 +129,9 @@ No|no|N|n) SHARED_LIBS=-lc ;;
|
||||
LIBS=$SAVELIBS ;;
|
||||
esac
|
||||
|
||||
+# look for capabilities library
|
||||
+LIBCAP_NG_PATH
|
||||
+
|
||||
GPMXTERM=
|
||||
AC_SUBST(GPMXTERM)
|
||||
AC_SUBST(abi_lev)
|
||||
diff -urp gpm-1.20.6.orig/src/daemon/main.c gpm-1.20.6/src/daemon/main.c
|
||||
--- gpm-1.20.6.orig/src/daemon/main.c 2009-08-15 13:39:33.000000000 -0400
|
||||
+++ gpm-1.20.6/src/daemon/main.c 2009-08-15 13:47:39.000000000 -0400
|
||||
@@ -26,9 +26,18 @@
|
||||
|
||||
#include "headers/daemon.h"
|
||||
#include "headers/gpmInt.h"
|
||||
+#ifdef HAVE_LIBCAP_NG
|
||||
+#include <cap-ng.h>
|
||||
+#endif
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
+#ifdef HAVE_LIBCAP_NG
|
||||
+ capng_clear(CAPNG_SELECT_BOTH);
|
||||
+ capng_updatev(CAPNG_ADD, CAPNG_EFFECTIVE|CAPNG_PERMITTED,
|
||||
+ CAP_SYS_ADMIN, CAP_SYS_TTY_CONFIG, -1);
|
||||
+ capng_apply(CAPNG_SELECT_BOTH);
|
||||
+#endif
|
||||
startup(argc,argv); /* setup configurations */
|
||||
old_main(); /* LATER: exit(daemon()); */
|
||||
return 0; /* if we didn't exit before, just give back success */
|
||||
diff -urp gpm-1.20.6.orig/src/Makefile.in gpm-1.20.6/src/Makefile.in
|
||||
--- gpm-1.20.6.orig/src/Makefile.in 2009-08-15 13:39:33.000000000 -0400
|
||||
+++ gpm-1.20.6/src/Makefile.in 2009-08-15 13:49:45.000000000 -0400
|
||||
@@ -82,7 +82,8 @@ prog/%: prog/%.o
|
||||
all: gpm lib/libgpm.so.@abi_lev@ lib/libgpm.a $(PROG)
|
||||
|
||||
gpm: $(GOBJ)
|
||||
- $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $(GOBJ) @LIBS@ $(LIBS) -lm
|
||||
+ $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $(GOBJ) @LIBS@ $(LIBS) \
|
||||
+ -lm $(CAPNG_LDADD)
|
||||
|
||||
# construct dependings of sourcefiles and link sourcefiles
|
||||
$(DEPFILE) dep: prog/gpm-root.c
|
Loading…
Reference in New Issue
Block a user