search for: setcon

Displaying 20 results from an estimated 107 matches for "setcon".

Did you mean: setcond
2009 Aug 12
1
[PATCH] Add 'setcon', 'getcon' commands to set and get the SELinux context
...and get the SELinux context of the daemon and all operations in the API and processes run from the daemon: $ ./fish/guestfish --ro -a /dev/mapper/vg_trick-F11x64 \ selinux 1 : \ run : \ mount /dev/vg_f11x64/lv_root / : \ sh "/usr/sbin/load_policy" : \ getcon : \ setcon "system_u:system_r:unconfined_t:s0" : \ getcon system_u:system_r:kernel_t:s0 system_u:system_r:unconfined_t:s0 Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software insi...
2009 Aug 13
7
[PATCHx7] Misc patches
...8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/daemon/selinux.c b/daemon/selinux.c index ad5eaa1..575baf5 100644 --- a/daemon/selinux.c +++ b/daemon/selinux.c @@ -30,8 +30,6 @@ #include "daemon.h" #include "actions.h" -#ifdef HAVE_LIBSELINUX - /* setcon is only valid under the following circumstances: * - single threaded * - enforcing=0 @@ -39,7 +37,7 @@ int do_setcon (const char *context) { -#ifdef HAVE_SETCON +#if defined(HAVE_LIBSELINUX) && defined(HAVE_SETCON) if (setcon ((char *) context) == -1) { reply_with_perror (&qu...
2009 Aug 28
8
[Bug 1637] New: Change the context when starting internal-sftp
https://bugzilla.mindrot.org/show_bug.cgi?id=1637 Summary: Change the context when starting internal-sftp Product: Portable OpenSSH Version: 5.2p1 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sftp-server AssignedTo: unassigned-bugs at mindrot.org
2009 Aug 14
1
[PATCH libguestfs] build: avoid "make sytnax-check" failure
...libselinux (optional). AC_CHECK_HEADERS([selinux/selinux.h]) AC_CHECK_LIB([selinux],[setexeccon],[ LIBS="-lselinux $LIBS" - have_libselinux="$ac_cv_header_selinux_selinux_h" + have_libselinux="$ac_cv_header_selinux_selinux_h" AC_CHECK_FUNCS([setcon getcon]) ],[have_libselinux=no]) if test "x$have_libselinux" = "xyes"; then -- 1.6.4.357.gfd68c
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
...@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009-2012 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -60,7 +60,7 @@ do_setcon (const char *context) return 0; #else - NOT_AVAILABLE (-1); + NOT_AVAILABLE (selinux, -1); #endif } @@ -85,6 +85,6 @@ do_getcon (void) return r; /* caller frees */ #else - NOT_AVAILABLE (NULL); + NOT_AVAILABLE (selinux, NULL); #endif } diff --git a/daemon/s...
2019 Nov 27
5
[v2v PATCH v2 0/5] Various build cleanups
Brought to you by the "I haven't rebuilt the libguestfs universe in a while" saga -- now with working test suite. Pino Toscano (5): build: remove extra gnulib submodule build: remove extra checks and submodules build: stop using gnulib in test-harness build: remove unused gnulib modules Remove extra entries from podfiles .gitmodules | 3 -- Makefile.am
2019 Nov 27
6
[v2v PATCH 0/5] Various build cleanups
Brought to you by the "I haven't rebuilt the libguestfs universe in a while" saga. Pino Toscano (5): build: remove extra gnulib submodule build: remove extra checks and submodules build: stop using gnulib in test-harness build: remove unused gnulib modules Remove extra entries from podfiles .gitmodules | 3 -- Makefile.am | 2 - bootstrap
2017 Mar 03
2
[PATCH] generator: Allow actions to be deprecated with no replacement.
...= Some "fallocate64"; + deprecated_by = Replaced_by "fallocate64"; tests = [ InitScratchFS, Always, TestResult ( [["fallocate"; "/fallocate"; "1000000"]; @@ -567,7 +567,7 @@ attaches it as a device." }; name = "setcon"; added = (1, 0, 67); style = RErr, [String "context"], []; optional = Some "selinux"; - deprecated_by = Some "selinux_relabel"; + deprecated_by = Replaced_by "selinux_relabel"; shortdesc = "set SELinux security context";...
2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in: https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html Rich.
2014 May 29
3
Re: libguestfs error
...red checking for library containing xdr_u_int64_t... no checking for library containing xdr_uint64_t... none required checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking sys/sdt.h usability... no checking sys/sdt.h presence... no checking for sys/sdt.h... no checking for cpio... cpio checking for gperf... gperf checking for perl... perl checking for Pod::Man... yes checking for Pod::Simple... yes checking for genisoimage.....
2014 May 29
2
Re: libguestfs error
Hi Rich Yes Rich I have tried libguesftfs on powerpc and it was working fine.For some reason i had to format my hard disk and now when I'm again compiling it,I'm getting following error.... Below is the status of configure .. This is how we have configured the optional components for you today: Daemon .............................. yes Appliance ........................... yes QEMU
2015 Oct 29
16
[PATCH 00/16] Refactoring of configure.ac and guestfs.pod
Two (not related to each other) refactorings: Patches 1-12 split configure.ac into smaller files using the m4_include mechanism. Patches 13-15 split out parts of guestfs.pod (ie. guestfs(3)) into three new manual pages: guestfs-hacking(3) - how to extend and contribute to libguestfs guestfs-internals(3) - architecture and internals guestfs-security(3) - security and CVEs Patch 16 is a
2010 Dec 07
1
builder-ubuntu libguestfs FAILED build step 4b8f70d46dcfed1489c97f822e263b8615f21ea0
..._match in -laugeas... yes checking for aug_load... yes checking for aug_defvar... yes checking for aug_defnode... yes checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for getxattr... yes checking for htonl... yes checking for htons... yes checking for inotify_init1... yes checking for lgetxattr... yes checkin...
2010 Dec 07
0
builder-ubuntu libguestfs FAILED build step 21810ade12e43fb4d8bfdcefb37a7d8bbe9eef8c
..._match in -laugeas... yes checking for aug_load... yes checking for aug_defvar... yes checking for aug_defnode... yes checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for getxattr... yes checking for htonl... yes checking for htons... yes checking for inotify_init1... yes checking for lgetxattr... yes checkin...
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
..._match in -laugeas... yes checking for aug_load... yes checking for aug_defvar... yes checking for aug_defnode... yes checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for getxattr... yes checking for htonl... yes checking for htons... yes checking for inotify_init1... yes checking for lgetxattr... yes checkin...
2011 Jan 28
0
builder-ubuntu libguestfs FAILED build step f060d5bcd40b4a6506d7994e67d57dccab1651b8
..._match in -laugeas... yes checking for aug_load... yes checking for aug_defvar... yes checking for aug_defnode... yes checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for getxattr... yes checking for htonl... yes checking for htons... yes checking for inotify_init1... yes checking for lgetxattr... yes checkin...
2011 Jan 28
1
builder-debian libguestfs FAILED build step 82f5fdb0dbbc0c7b04861edeadf70c86c9342df2
..._match in -laugeas... yes checking for aug_load... yes checking for aug_defvar... yes checking for aug_defnode... yes checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for getxattr... yes checking for htonl... yes checking for htons... yes checking for inotify_init1... yes checking for lgetxattr... yes checkin...
2010 Dec 14
1
builder-debian libguestfs FAILED build step dec770f171329868081985ca0aa3d52eb3759935
..._match in -laugeas... yes checking for aug_load... yes checking for aug_defvar... yes checking for aug_defnode... yes checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for getxattr... yes checking for htonl... yes checking for htons... yes checking for inotify_init1... yes checking for lgetxattr... yes checkin...
2011 Jan 18
1
builder-debian libguestfs FAILED build step 41bbc0a7a3f3cd768c83183327ffc562d2040a83
..._match in -laugeas... yes checking for aug_load... yes checking for aug_defvar... yes checking for aug_defnode... yes checking selinux/selinux.h usability... yes checking selinux/selinux.h presence... yes checking for selinux/selinux.h... yes checking for setexeccon in -lselinux... yes checking for setcon... yes checking for getcon... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for getxattr... yes checking for htonl... yes checking for htons... yes checking for inotify_init1... yes checking for lgetxattr... yes checkin...