test-udev.c revision 8314de1d815667b0289423d7e6bfbe8d83759077
/***
This file is part of systemd.
Copyright 2003-2004 Greg Kroah-Hartman <greg@kroah.com>
Copyright 2004-2012 Kay Sievers <kay@vrfy.org>
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sched.h>
#include <sys/signalfd.h>
#include "missing.h"
#include "selinux-util.h"
#include "signal-util.h"
#include "udev.h"
#include "udev-util.h"
static int fake_filesystems(void) {
static const struct fakefs {
const char *src;
const char *target;
const char *error;
} fakefss[] = {
};
unsigned int i;
int err;
if (err < 0) {
goto out;
}
goto out;
}
for (i = 0; i < ELEMENTSOF(fakefss); i++) {
if (err < 0) {
return err;
}
}
out:
return err;
}
char syspath[UTIL_PATH_SIZE];
const char *devpath;
const char *action;
int err;
err = fake_filesystems();
if (err < 0)
return EXIT_FAILURE;
return EXIT_FAILURE;
mac_selinux_init("/dev");
log_error("action missing");
goto out;
}
log_error("devpath missing");
goto out;
}
goto out;
}
/* do what devtmpfs usually provides us */
else
} else {
}
}
NULL,
rules);
out:
}