Page MenuHomeFreeBSD

ficl pfopen: verify file
ClosedPublic

Authored by sjg on May 23 2019, 8:10 PM.
Tags
None
Referenced Files
F106636156: D20387.diff
Fri, Jan 3, 3:13 AM
Unknown Object (File)
Fri, Dec 20, 6:19 PM
Unknown Object (File)
Tue, Dec 10, 7:57 PM
Unknown Object (File)
Nov 22 2024, 7:37 AM
Unknown Object (File)
Nov 19 2024, 3:21 AM
Unknown Object (File)
Nov 6 2024, 5:07 PM
Unknown Object (File)
Nov 6 2024, 5:07 PM
Unknown Object (File)
Nov 6 2024, 5:07 PM
Subscribers

Details

Summary

If the file is verified - do not allow write
otherwise do not allow read.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24452
Build 23260: arc lint + arc unit

Event Timeline

stand/ficl/loader.c
509

I believe this should be written like so:
if ((mode & O_ACCMODE) != O_WRONLY) {

515

Similar thing here:
if ((mode & O_ACCMODE) != O_RDONLY) {

sjg marked 2 inline comments as done.May 23 2019, 9:33 PM

Good point

stand.h needs to define O_ACCMODE

Did some basic testing and it looks ok.

This revision is now accepted and ready to land.May 24 2019, 7:33 AM
This revision was automatically updated to reflect the committed changes.