Hi All,
I am using mknod function in my driver to create a device file.
Code:
mknod("/dev/sampledev", S_IFCHR|S_IRUGO|S_IWUGO, MKDEV(SAMPLE_MAJOR, 0));
While loading this driver in 2.6.18 kernel the permission i get is as following:
In 2.6.33:
I havent done any changes in the code. can you guys explain this difference in behavior?
Thanks in advance,