Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 149886 Details for
Bug 231914
Laus doesn't audit detach event
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Utility to detach a program from laus
laus_detach.c (text/x-csrc), 1.40 KB, created by
Matthew Booth
on 2007-03-12 23:46:27 UTC
(
hide
)
Description:
Utility to detach a program from laus
Filename:
MIME Type:
Creator:
Matthew Booth
Created:
2007-03-12 23:46:27 UTC
Size:
1.40 KB
patch
obsolete
>/* > * laus_detach: A utility to create a new process and detach it from laus. > * > * laus_detach is a convenient wrapper round the laus_detach function. It is > * called as: > * > * laus_detach <command> [<arguments ...>] > * > * It detaches itself from laus, then execs <command>, passing any arguments > * specified. > * > * Matthew Booth <mbooth@redhat.com> - 28/02/2007 > */ > >#include <stdio.h> >#include <unistd.h> > >#include <laus.h> > >/* Function prototypes */ >static void display_usage(const char * const exename); >static int detach(); > >int main(const int argc, char *const argv[]) >{ > int retval; > > if(argc < 2) { > display_usage(argv[0]); > return 1; > } > > retval = detach(); > if(retval != 0) { > return retval; > } > > execv(argv[1], argv + 1); > > fprintf(stderr, "Failed to execute %s: %m\n", argv[1]); > return 1; >} > >static void display_usage(const char * const exename) >{ > fprintf(stderr, "Usage: %s " > "<command> [<arguments ...>]\n", exename); >} > >static int detach() >{ > int err; > > if((err = laus_init()) < 0) { > fprintf(stderr, "Unable to initialise laus: %m\n"); > return 1; > } > > if((err = laus_open("/dev/audit")) < 0) { > fprintf(stderr, "Unable to connect to laus: %m\n"); > return 1; > } > > if((err = laus_detach()) < 0) { > fprintf(stderr, "Unable to detach from laus: %m\n"); > return 1; > } > > return 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 Raw
Actions:
View
Attachments on
bug 231914
:
149880
|
149884
| 149886 |
149949