|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Making DBI with SQLite3 truly read-onlyby mldvx4 (Hermit) |
| on Nov 04, 2025 at 14:25 UTC ( [id://11166644]=perlquestion: print w/replies, xml ) | Need Help?? |
|
mldvx4 has asked for the wisdom of the Perl Monks concerning the following question: Greetings, wise monks, I am trying to crank down restrictions on an FCGI script. I have DBI opening an SQLite3 database as read-only. This is how I am currently connecting to the database:
However, AppArmor still gives the following error about needing write access, even though the error and restrictions causing it do not impair the script from appearing to work as expected:
and in the AppArmor profile:
If I add w to that, the errors go away. However, I don't want to do that because the script's access is supposed to remain read-only. Yet it appears that DBI is somehow still requesting some kind of write access, even if it does not use it. What can I change in the DBI connection to ensure that it is purely read-only as far as the database goes?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||