Skip to content

Commit

Permalink
Raise default value for db_max_size
Browse files Browse the repository at this point in the history
To prevent fapolicyd aborting early when too many packages are installed

Signed-off-by: Tavi <[email protected]>
  • Loading branch information
SkewedZeppelin authored and radosroka committed Nov 18, 2024
1 parent 88f2bac commit 4ae3e53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/fapolicyd.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This option controls whether (1) or not (0) fapolicyd should add subject and obj

.TP
.B db_max_size
This option controls how many megabytes to allow the trust database to grow to. If you have lots of packages installed, then you want to make it bigger. The default value is 50 megabytes.
This option controls how many megabytes to allow the trust database to grow to. If you have lots of packages installed, then you want to make it bigger. The default value is 100 megabytes.

.TP
.B subj_cache_size
Expand Down
2 changes: 1 addition & 1 deletion init/fapolicyd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ uid = fapolicyd
gid = fapolicyd
do_stat_report = 1
detailed_report = 1
db_max_size = 50
db_max_size = 100
subj_cache_size = 1549
obj_cache_size = 8191
watch_fs = ext2,ext3,ext4,tmpfs,xfs,vfat,iso9660,btrfs
Expand Down
2 changes: 1 addition & 1 deletion src/library/daemon-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static void clear_daemon_config(conf_t *config)
config->gid = 0;
config->do_stat_report = 1;
config->detailed_report = 1;
config->db_max_size = 50;
config->db_max_size = 100;
config->subj_cache_size = 1549;
config->obj_cache_size = 8191;
config->watch_fs = strdup("ext4,xfs,tmpfs");
Expand Down

0 comments on commit 4ae3e53

Please sign in to comment.