Skip to content
Snippets Groups Projects
Select Git revision
  • bc146a05a9ad720c7f985886ba2d481dc88cffd5
  • master default
  • develop
  • borders
  • tests
  • 16
  • 15
  • gaps
  • v1.6.1
  • v1.6
  • v1.5
  • v1.4
  • v1.3.3
  • v1.3.2
  • v1.3.2rc2
  • v1.3.1rc1
  • v1.3.1.2
  • v1.3.1.1
  • v1.3.1
  • v1.3
  • v1.3rc2
  • v1.3rc1
  • v1.2.1
  • v1.2
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
28 results

layout.js

Blame
  • runcon.c 608 B
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    #include <errno.h>
    #include <selinux/selinux.h>
    
    int runcon_main(int argc, char **argv)
    {
        int rc;
    
        if (argc < 3) {
            fprintf(stderr, "usage:  %s context program args...\n", argv[0]);
            exit(1);
        }
    
        rc = setexeccon(argv[1]);
        if (rc < 0) {
            fprintf(stderr, "Could not set context to %s:  %s\n", argv[1], strerror(errno));
            exit(2);
        }
    
        argv += 2;
        argc -= 2;
        execvp(argv[0], argv);
        fprintf(stderr, "Could not exec %s:  %s\n", argv[0], strerror(errno));
        exit(3);
    }