what is the value of errno? All that the return of -1 indicates is that there was an error. To determine what the error was you need to look at the global errno.
Yes, I have checked the global errno, the -1 is -EPERM. That means that I have no permission to write according the codes.
It's not clear to me if your problem is with the call to open or to write. If the call to write is your problem you need the errno value to go further.
I have checked the running trace and find that I have opened the file successfully but the write operation return the -1 to me. Therefore, I think that the error occur in the write operation. What about you? Thanks a lot, Ian - To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
