Lines Matching refs:tdb
26 write access to the ntdrivers.tdb file to set permissions and read
68 TDB_CONTEXT *tdb;
170 /* Open tdb for reading */
172 slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb",
175 tdb = tdb_open(tdb_path, 0, 0, O_RDONLY, 0600);
177 if (!tdb) {
183 /* Get security blob from tdb */
195 if (tdb_prs_fetch(tdb, keystr, &ps, mem_ctx) != 0) {
200 tdb_close(tdb);
248 if (tdb) tdb_close(tdb);
274 /* Open tdb for reading */
276 slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb",
279 tdb = tdb_open(tdb_path, 0, 0, O_RDWR, 0600);
281 if (!tdb) {
346 /* Write security descriptor to tdb */
366 if (!tdb_prs_store(tdb, keystr, &ps)==0) {
372 if (tdb) tdb_close(tdb);