Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to enable ACLs for files under /dev/pts?

OS is Gentoo Linux, and the kernel is 3.2.13 with grsec.

share|improve this question
    
I wonder who was so kind to downvote without commenting –  miniBill Jun 26 '12 at 7:27

2 Answers 2

Do you mean ACLs as in the things you set with setfacl? No, the 'files' under /dev/pts are character devices.

setfacl only works for files and directories.

setfacl -m u:test1:r /dev/pts/2
setfacl: /dev/pts/2: Operation not supported
share|improve this answer
    
Isn't there a way to use ACLs on character devices? –  miniBill Jun 14 '12 at 15:02
    
What are you trying to do? –  Sirch Jun 14 '12 at 15:10
    
Allow users to restrict who can write them –  miniBill Jun 17 '12 at 18:47
    
Well I dunno if there is anything since no xattr support on devpts. –  Andrew Smith Jun 20 '12 at 12:31
    
ls -lZ /dev/pts crw--w----. root tty unconfined_u:object_r:user_devpts_t:s0 0 crw--w----. root tty unconfined_u:object_r:user_devpts_t:s0 1 c---------. root root system_u:object_r:ptmx_t:s0 ptmx –  Andrew Smith Jun 20 '12 at 12:56
up vote 0 down vote accepted

Apparently there is an [old] patch for what I want to do here, but it was rejected because of lack of use cases.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.