On Fri, 2011-03-25 at 11:18 +0800, Harry Ciao wrote: > So far I have not got an environment as your to reproduce this problem. > Could you please kindly print the orig_class and the sock boolean in > your case? It's weird since so far only the process and socket classes > could retain the creator's role, any other classes object should have > "object_r" as usual. > > Many thanks for your help! You can exercise the code without using XACE/XSELinux by running the compute_create program from libselinux/utils, e.g. $ compute_create `id -Z` `id -Z` x_drawable I think the bug lies in map_class() handling of the case where the userspace object class has no corresponding kernel class, as would be the case for the x_* classes. map_class() should likely return 0 (SECCLASS_NULL) in that case rather than pol_value and thereby ensure that we won't match any legitimate kernel class value. -- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.