Are file permissions something which are merely stored on the HDD (or other storage medium) and respected by operating systems. Or does the HDD actively enforce them in some way?
I know that if I attempt to access/modify files in any way which involves going through features provided by the operating system including use of any class/method of any programming language which actually goes through the OS/drivers then file permissions will be enforced.
What Would happen if I wrote code which directly interfaces with the HDD? Perhaps if I was to research the API a particular HDDs firmware uses and wrote code which directly sends the HDD the signals which would result in its firmware doing something. If I was to do this would file permissions have any effect?
Would it make any difference if my code required an OS which respects file permissions or not?