Improve how to get the file permission attributes - resf BT#9041