Fixed pipe2(2) flags behaviour
Added permission checks to open(2)
Fixed inode resource leak in open(2) on error conditions