I am using mknod function in my driver to create a device file.
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:
I havent done any changes in the code. can you guys explain this difference in behavior?
Thanks in advance,