Prompted by bug #269185 . Currently, cap_enter would return ENOSYS, e.g. in bsd-user/freebsd/os-proc.h: /* cap_enter(2) */ static inline abi_long do_freebsd_cap_enter(void) { qemu_log("qemu: Unsupported syscall cap_enter()\n"); return -TARGET_ENOSYS; } can the capability mode system calls be supported?
(In reply to Xin LI from comment #0) IMO it's really not worth the massive project to actually implement capability mode. We had discussed this on IRC last week and decided it might be relatively harmless to just return a fake success since nothing in base changes its behavior between success and ENOSYS, but I'm not a big fan of the idea on general principle...
There is a small chance we could do simple wrappers here if we need to do it. Otherwise returning 0 might not be terrible