svn: Can’t open file ‘${repo}/db/txn-current-lock’: Permission denied

Trying to do a SVN commit & getting:

user:workspaces user$ svn checkout http://svn.test.com/core
Checked out revision 0.
user@desktop$ cd core
user@desktop$ touch foo
user@desktop$ svn add foo
A         foo
user@desktop$ svn commit -m "test"
svn: Commit failed (details follow):
svn: Can't open file '/opt/cmtools/svn_repos/core/db/txn-current-lock': Permission denied

http://stackoverflow.com/questions/960241/svn-permission-denied
Turns out it’s a selinux error

root@server$ chcon -R -t httpd_sys_content_rw_t /opt/cmtools/svn_repos/core/
user@desktop$ svn commit -m "test"
Adding         foo
Transmitting file data .
Committed revision 1.