Merge pull request #265 from dsheets/transfused-mknod-reg

transfused: add mknod reg file event actuation message
This commit is contained in:
Justin Cormack 2016-07-12 10:18:29 +01:00 committed by GitHub
commit bf1a0e0011
2 changed files with 6 additions and 0 deletions

View File

@ -624,6 +624,11 @@ void perform_syscall(connection_t * conn, uint8_t syscall, char path[]) {
r = symlink(".",path);
break;
case MKNOD_REG_SYSCALL:
name = "mknod";
r = mknod(path, 0600, 0);
break;
case TRUNCATE_SYSCALL:
name = "truncate";
r = truncate(path, 0);

View File

@ -48,6 +48,7 @@ void write_exactly(char * descr, int fd, void * buf, size_t nbyte);
#define SYMLINK_SYSCALL 3
#define TRUNCATE_SYSCALL 4
#define CHMOD_SYSCALL 5
#define MKNOD_REG_SYSCALL 6
// these could be turned into an enum probably but... C standard nausea
#define MOUNT_SUITABILITY_REQUEST 1