Closed ysangkok closed 8 years ago
$ ./nix-user-chroot $HOME/nix-root bash map write: Operation not permitted
This is the bottom of the strace output:
mkdir("/home/janus/nix-root/bin", 0755) = -1 EEXIST (File exists) mount("/bin", "/home/janus/nix-root/bin", 0x40126b, MS_BIND|MS_REC, NULL) = 0 getdents(3, /* 0 entries */, 32768) = 0 open("/proc/self/uid_map", O_WRONLY) = 4 write(4, "1011 1011 1", 11) = 11 close(4) = 0 open("/proc/self/gid_map", O_WRONLY) = 4 write(4, "1011 1011 1", 11) = -1 EPERM (Operation not permitted) dup(2) = 5 fcntl(5, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 30), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc0725fc000 lseek(5, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(5, "map write: Operation not permitt"..., 35map write: Operation not permitted ) = 35 close(5) = 0 munmap(0x7fc0725fc000, 4096) = 0 exit_group(1) = ? +++ exited with 1 +++
Fixed by #5
This is the bottom of the strace output: