Optimize operations on file with list of Smack labels 54/292454/14
authorTomasz Swierczek <t.swierczek@samsung.com>
Mon, 8 May 2023 09:20:18 +0000 (11:20 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Wed, 10 May 2023 10:19:55 +0000 (12:19 +0200)
commit768d24899f20194b606bce0a221f3f24e234c7cb
treed879124c4aa4caf73d4f722b1fa5851bee6cfe63
parent3ae47912fe7c859beb2c258335b459205673bc2d
Optimize operations on file with list of Smack labels

There's no need to call DB and tz-platform-config for each
label of given user; it makes sense to re-use the fact
that update is called always on update/install/uninstall of precisely
specified package, so changes only affect labels of that package,
be it removal or addition to the set.

Change-Id: I88686341fc49186afe60ed9f86dbdb98c1258064
src/common/include/permissible-set.h
src/common/include/service_impl.h
src/common/permissible-set.cpp
src/common/service_impl.cpp