mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
Merge pull request #265 from dsheets/transfused-mknod-reg
transfused: add mknod reg file event actuation message
This commit is contained in:
commit
bf1a0e0011
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user