Hey,
I'm currently attempting to implement mouse support in a user application, and I'm kinda hitting a bit of a roadblock here. It seems as though and it would make sense that /dev/sysmouse (from sysmouse(4)) should be readable by the user, as it's used for X and because it runs on top of /dev/ums*, which itself is readable by the user when it's not busy (i.e. when moused(8) isn't running), but it isn't:
Now what I can do is change the group ownership of /dev/sysmouse to be
and this works, I can then read it as a user (assuming he's part of the
Thanks for your time!
I'm currently attempting to implement mouse support in a user application, and I'm kinda hitting a bit of a roadblock here. It seems as though and it would make sense that /dev/sysmouse (from sysmouse(4)) should be readable by the user, as it's used for X and because it runs on top of /dev/ums*, which itself is readable by the user when it's not busy (i.e. when moused(8) isn't running), but it isn't:
Code:
% cat /dev/sysmouse
cat: /dev/sysmouse: Permission denied
Now what I can do is change the group ownership of /dev/sysmouse to be
operator
and then make it readable by the operator
group:
Code:
# ll /dev/sysmouse
crw------- 1 root wheel 0x19 4 Sep 12:11 /dev/sysmouse
# chown :operator /dev/sysmouse
# chmod g+r /dev/sysmouse
# ll /dev/sysmouse
crw-r----- 1 root operator 0x19 4 Sep 12:11 /dev/sysmouse
and this works, I can then read it as a user (assuming he's part of the
operator
group), but it's still got me wondering 1. if playing around with permissions like this is allowed/recommended 2. why /dev/sysmouse isn't available to the user in the first place.Thanks for your time!
Last edited by a moderator: