https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260214

--- Comment #4 from [email protected] ---
(In reply to Damjan Jovanovic from comment #2)
"when I successfully open it as non-root user with O_RDONLY, the ioctl() gets:
ioctl: Operation not permitted"

This is commented in sys/dev/acpi.c (line 4000)
  /*
     * Core ioctls are not permitted for non-writable user.
     * Currently, other ioctls just fetch information.
     * Not changing system behavior.
     */
    if ((flag & FWRITE) == 0)
        return (EPERM);

...

Just delete the if statement? xD

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to