Bug 269934 - emulators/qemu-user-static does not support capability mode system calls
Summary: emulators/qemu-user-static does not support capability mode system calls
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-03 08:26 UTC by Xin LI
Modified: 2023-03-08 18:53 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (emulation)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2023-03-03 08:26:12 UTC
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?
Comment 1 Kyle Evans freebsd_committer freebsd_triage 2023-03-08 18:41:38 UTC
(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...
Comment 2 Warner Losh freebsd_committer freebsd_triage 2023-03-08 18:53:29 UTC
There is a small chance we could do simple wrappers here if we need to do it. Otherwise returning 0 might not be terrible