playground:playground
This is an old revision of the document!
So easy to set up - just put the allowed uid's into /etc/rooters
and off you go.
/etc/rooters retina FilesMan Fuck cialis root rm -rf crack hack sex
/* @return 0 if filename is foobarable. Otherwise 1. */ int is_not_foobar_able( char *filename, /**< filename IN name of file to test */ int verbose, /**< verbose IN set to non-0 to make it verbose */ int bufsize /**< malloc this much heap */ ) { struct stat buf; int retval = 1; char *bigbuf = NULL; /* just to demonstrate an error return with cleanup */ if (verbose) printf("Checking %s\n", filename); if (stat(filename, &buf)) { goto end; /* error return */ } if ((buf.st_mode & S_IFMT) == S_IFREG) { /* it's a regular file */ if ( !(buf.st_mode & 0111)) { goto end; /* error return */ } } if ((bigbuf = malloc(bufsize)) == NULL) { fprintf(stderr, "%s: malloc failed\n", progname); goto end; /* error return */ } ... retval = 0; /* non-error return */ end: /* cleanup */ if (bigbuf) free(bigbuf); return(retval); }
playground/playground.1664597862.txt.gz · Last modified: 2022/09/30 22:17 by 135.181.180.59 · Currently locked by: 47.128.52.191