summaryrefslogtreecommitdiff
path: root/packaging/security-manager.changes
blob: e7df9ebd03ef64d4dfe42842cc25a6ffa35f20e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
Release: 1.8.2
Date:    2023.05.30
Name:    Release 1.8.2
Description:
Abort app candidate process in case of wrong setup

###############################

Release: 1.8.1
Date:    2023.05.24
Name:    Release 1.8.1
Description:
Optimize operations on file with list of Smack labels
Change order of items checking during getDirectoryContents() loop
Small fixes in unit tests

###############################

Release: 1.8.0
Date:    2023.02.21
Name:    Release 1.8.0
Description:
Package versioning bump as Tizen 6.5 got update to 1.7.14 (non-fast-forward)

###############################

Release: 1.7.13
Date:    2023.02.02
Name:    Release 1.7.13
Description:
Fix static analysis

###############################

Release: 1.7.12
Date:    2022.12.22
Name:    Release 1.7.12
Description:
Change some logs into warnings

###############################

Release: 1.7.11
Date:    2022.11.28
Name:    Release 1.7.11
Description:
Add additional logs to security-manager

###############################

Release: 1.7.10
Date:    2022.11.22
Name:    Release 1.7.10
Description:
Disable LTO

###############################

Release: 1.7.9
Date:    2022.11.10
Name:    Release 1.7.9
Description:
Change delay for setting cpu_inheritance

###############################

Release: 1.7.8
Date:    2022.10.17
Name:    Release 1.7.8
Description:
Change logic of security_manager_app_update()

###############################

Release: 1.7.7
Date:    2022.09.07
Name:    Release 1.7.7
Description:
Appease SVACE

###############################

Release: 1.7.6
Date:    2022.08.11
Name:    Release 1.7.6
Description:
Fix out of bounds socket description vector access
Delay service thread construction until dependencies are initialized
Decrease message buffer test payload size to avoid bad_alloc
Refactor errno logging

###############################

Release: 1.7.5
Date:    2022.08.04
Name:    Release 1.7.5
Description:
Add subsession bind mount isolation

###############################

Release: 1.7.4
Date:    2022.08.03
Name:    Release 1.7.4
Description:
Drop std::function from try_catch() and friends, deficient edition
Simplify socket-manager timeout logic
Switch to CLOCK_MONOTONIC_COARSE
Refrain from calling sessiond in offline mode
Prioritize requests based on cpu boosting level
Simplify service and IO thread's class hierarchies
Make socket manager counters more robust
Refactor MessageBuffer and dependencies

###############################

Release: 1.7.3
Date:    2022.07.19
Name:    Release 1.7.3
Description:
Decrease service thread lock thrashing
Fix subsession paths

###############################

Release: 1.7.2
Date:    2022.07.15
Name:    Release 1.7.2
Description:
Basic integration with sessiond
Drop socket manager multi service support
Handle signals locally in socket manager main loop
Switch socket manager notification from pipe to eventfd
Remove unused sendmsg functionality

###############################

Release: 1.7.1
Date:    2022.05.18
Name:    Release 1.7.1
Description:
Enhance DB recovery logic
Minor fix of wording in comment
Remove unused code

###############################

Release: 1.7.0
Date:    2021.11.03
Name:    Release 1.7.0
Description:
Bump versioning as tizen_6.0 has diverged from tizen branch (and tizen_6.5).

###############################


Release: 1.6.21
Date:    2021.11.03
Name:    Release 1.6.21
Description:
Retry blocking waitpid() on EINTR

###############################

Release: 1.6.20
Date:    2021.08.25
Name:    Release 1.6.20
Description:
Adding privilege group priv_platform

###############################

Release: 1.6.19
Date:    2021.06.23
Name:    Release 1.6.19
Description:
Adding privilege group priv_peripheralio
Make prepare_app() safer in non-main threads

###############################
Release: 1.6.18
Date:    2021.04.19
Name:    Release 1.6.18
Description:
Add core privileges: usb.host and log

###############################

Release: 1.6.17
Date:    2021.04.09
Name:    Release 1.6.17
Description:
Fix issue from static analysis

###############################

Release: 1.6.16
Date:    2021.03.23
Name:    Release 1.6.16
Description:
Add core privilege: bugreport.admin
Fix coverage generation in rpm 4.14.1

###############################

Release: 1.6.15
Date:    2021.02.09
Name:    Release 1.6.15
Description:
Change systemd-devel package name
Drop http://tizen.org/privilege/internal/livecoredump mapping to priv_livecoredump

###############################

Release: 1.6.14
Date:    2020.11.10
Name:    Release 1.6.14
Description:
Add Requires=local-fs.target dependency to security-manager-rules-loader.service
Automate code coverage measurement

###############################

Release: 1.6.13
Date:    2020.10.29
Name:    Release 1.6.13
Description:
Add check for $TZ_SYS_RUN/lock existance in update scripts

###############################

Release: 1.6.12
Date:    2020.10.26
Name:    Release 1.6.12
Description:
Relax exit-on-error in update scripts
Change FileLocker implemenation from POSIX to libc flocks

###############################

Release: 1.6.11
Date:    2020.10.22
Name:    Release 1.6.11
Description:
Apply private sharing rules before relabeling

###############################

Release: 1.6.10
Date:    2020.10.19
Name:    Release 1.6.10
Description:
Change author labels recursively in the upgrade script.
Increase timeout waiting for signal delivery to 2 seconds

###############################

Release: 1.6.9
Date:    2020.10.16
Name:    Release 1.6.9
Description:
Fix a typo in privilege-smack.list

###############################

Release: 1.6.8
Date:    2020.10.02
Name:    Release 1.6.8
Description:
Fix segfault when iterating directories
Remove unused code from sha1.c
Revert "Add listing running apps based on namespace"
Remove redundant author name from db

###############################

Release: 1.6.7
Date:    2020.09.21
Name:    Release 1.6.7
Description:
Optimize loading group information.
Fix author_id mismatch after DB upgrade

###############################

Release: 1.6.6
Date:    2020.09.15
Name:    Release 1.6.6
Description:
Add configuration for appdebugging & internet Smack-controlled privileges
Calculate application privilege level based on manifest data passed by installer
Remove unused GetAuthorIdByName()

###############################

Release: 1.6.5
Date:    2020.08.19
Name:    Release 1.6.5
Description:
Add setting package type and privilege level in app install cmd
Add core privilege: network.route

###############################

Release: 1.6.4
Date:    2020.07.29
Name:    Release 1.6.4
Description:
Switch security-manager to dual license (Apache 2.0 or MIT)
Remove unneeded dependencies from nss plugin
Test recently added queries to privilege database

###############################

Release: 1.6.3
Date:    2020.07.10
Name:    Release 1.6.3
Description:
Fix CheckProperDrop tests
Reimplement prepare_app proper drop checking
Add smack-rules positive tests
Enhance testability of TemplateManager class
Add logging classes to unit tests
Add unit tests for template manager class
Remove unused code from sql_connection.cpp
Add negative test cases wherever possible
Add unit tests for functions in utils.cpp and other files
Add tests for service_impl_utils.cpp functions
Remove almost unused code from filesystem.cpp/.h
Remove unused code from filesystem.cpp/.h
Add test cases for filesystem.cpp functions
Set C++ 17 flags
Categorize unit test cases as negative or positive
Disable assert() for release builds

###############################

Release: 1.6.2
Date:    2020.05.14
Name:    Release 1.6.2
Description:
Add new arguments for installation requests
Properly handle missing/invalid smack privilege policy
Catch TizenPlatformConfig exception in NSMountLogic
Get distinct app names from pkg
Add listing running apps based on namespace
Don't assume that default privilege Smack rules template exists
Let template manager throw for configuration errors
Fix enterMountNamespace() error handling.

###############################

Release: 1.6.1
Date:    2020.04.22
Name:    Release 1.6.1
Description:
Properly handle ENOENT error on encrypted device
Move initial namespace setup to security_manager_prepare_app_candidate()

###############################

Release: 1.6.0
Date:    2020.04.21
Name:    Release 1.6.0
Description:
Fix security_manager_cleanup_app()
Add group mapping for internal/appdebugging privilege
Create new RPM for loading iptables rules at system start
Properly handle nonexisting apps uninstallation
Disable Smack privilege mapping configuration
Fix multi-user detection
Use mount namespace mount points to find running apps
Remove privilege related Smack rules when multi-user is detected
Change privilege related Smack rules on cynara policy change
Remove privilege Smack mapping rules on application uninstallation
Check if smack privilege mapping is enabled
Add Smack template files manager
Split smack API wrapper and rules management
Add restriction for privilege smack mapping rules
Change privilege and privilege status vector names for clarity
Change cynara client check to admin check for allowed privs
Add privilege-Smack mapping
Fix security-manager worker

###############################

Release: 1.5.22
Date:    2020.04.10
Name:    Release 1.5.22
Description:
Make prepare_app more robust with respect to thread termination
Fix ignoring ENOENT
CheckProperDrop class unit tests
Add new core privilege: notification.admin
Do not ignore EACCES (and other errors) while getting threads info
Unify path generation
Add single manifest file for each RPM package

###############################

Release: 1.5.21
Date:    2020.02.28
Name:    Release 1.5.21
Description:
Indicate tgkill failure in error log with errno
Fix static analysis issues

###############################

Release: 1.5.20
Date:    2020.02.06
Name:    Release 1.5.20
Description:
Fix app_update not setting sharedRO to false in db
Refactor ServiceThread
Reintroduce checks for directory existance in sharedRO setup

###############################

Release: 1.5.19
Date:    2020.02.03
Name:    Release 1.5.19
Description:
Remove nss plugin IPC with security-manager daemon
Fix Svace defect, remove unreachable statement.
Refactor macro usage within CheckProperDrop::checkThreads()

###############################

Release: 1.5.18
Date:    2020.01.23
Name:    Release 1.5.18
Description:
db: drop redundant IsPackageSharedRO query
prepare_app: refactor supplementary group assignment
prepare_app: coalesce all client->mgr IPCs into one
Make prepare_app_candidate faster
prepare_app: optimize setupSharedRO
prepare_app: simplify thread syncing
prepare_app: return errcode on CheckProperDrop failure
Throw exception on failed config file read
Don't copy socket events
Drop intermediate istringstream in ConfigFile::read()
Drop useless cap_clear() following cap_init()
Nanoooptimize mount-namespace.cpp

###############################

Release: 1.5.17
Date:    2020.01.17
Name:    Release 1.5.17
Description:
Add even more gcc 9 fixes after Wall enabling

###############################

Release: 1.5.16
Date:    2020.01.09
Name:    Release 1.5.16
Description:
Fix build for gcc 9
Revert "Mark colour_log_formatter methods as override"

###############################

Release: 1.5.15
Date:    2019.12.20
Name:    Release 1.5.15
Description:
Remove duplicated mount namespace setup
Skip mount namespace setup specific to privacy privileges
Enhance few logs around application launching.
Add http://tizen.org/privilege/internal/livecoredump and disable it for non-applications
Add user context to fetching tzplatform_config variable
Mark colour_log_formatter methods as override
Make colour_log_formatter compatible w/ boost 1.70

###############################

Release: 1.5.14
Date:    2019.11.28
Name:    Release 1.5.14
Description:
Add SharedRO skel path labelling when labeling any dir as SharedRO
Add release script
Label package base paths for SHARED_RO bind mounting
Label SHARED_RO directory under symlink
Add new $APP_HOME/.shared/$PKG_NAME dir to legal paths
Implement SharedRO with mount namespace
Remove package generated SharedRO rules

###############################

Release: 1.5.13
Date:    2019.11.13
Name:    Release 1.5.13
Description:
Add fsync after DB recovery.

###############################

Release: 1.5.12
Date:    2019.10.11
Name:    Release 1.5.12
Description:
Add core privileges: securesysteminfo and voicecontrol.tts

###############################


Release: 1.5.11
Date:    2019.10.09
Name:    Release 1.5.11
Description:
Do not fail NS worker action if mount point doesn't exist
Refactor service_impl.cpp

###############################


Release: 1.5.10
Date:    2019.09.03
Name:    Release 1.5.10
Description:
Disable http://tizen.org/privilege/internal/sysadmin for non-applications

###############################

Release: 1.5.9
Date:    2019.08.23
Name:    Release 1.5.9
Description:
Fix for synchronization of per-thread mount namespace setup
Add check for proper synchronization of threads namespaces
Fix licence comments in source code files

###############################

Release: 1.5.8
Date:    2019.07.15
Name:    Release 1.5.8
Description:
Prevent starting service without the socket
Make GetErrnoString not throwing
Optimize nss plugin memory usage
Remove unnecessary setting
Migrate to openssl 1.1

###############################

Release: 1.5.7
Date:    2019.06.11
Name:    Release 1.5.7
Description:
Add additional check for threads supgid pointers
Add logging of server-side operation handling time

###############################

Release: 1.5.6
Date:    2019.06.06
Name:    Release 1.5.6
Description:
Improve security_manager_prepare_app() performance
Stop forcing logs from server-side write() and close() operations
Revert "Enhance logs in case of socket problems, client hangs on waitForSocket()"
Properly handle EINPROGRESS error from connect()

###############################

Release: 1.5.5
Date:    2019.04.29
Name:    Release 1.5.5
Description:
Remove dbus.service.wants dependency

###############################

Release: 1.5.4
Date:    2019.04.26
Name:    Release 1.5.4
Description:
Enhance logs in case of socket problems, client hangs on waitForSocket()
Increase backlog for listening sockets

###############################

Release: 1.5.3
Date:    2019.04.15
Name:    Release 1.5.3
Description:
Add core privilege: d2d.datasharing, d2d.remotelaunch

###############################

Release: 1.5.2
Date:    2019.04.10
Name:    Release 1.5.2
Description:
Add new rules-loader options

###############################

Release: 1.5.1
Date:    2019.03.28
Name:    Release 1.5.1
Description:
Add core privilege: windowsystem.admin
Make waitpid(WNOHANG) call more explicit to appease SVACE

###############################

Release: 1.5.0
Date:    2019.03.05
Name:    Release 1.5.0
Description:
Replace time(NULL) with monotonic clock usage
Enhance logs in case of writing errors

###############################

Release: 1.4.14
Date:    2019.02.13
Name:    Release 1.4.14
Description:
Force logging server-side write() and close() operations
Add logging response buffer size in debug mode

###############################

Release: 1.4.13
Date:    2019.01.11
Name:    Release 1.4.13
Description:
Apply db fallback is present and the db is an empty file
Loader: add pragma legacy_alter_table for compatibility with sqlite 3.25.2+
Add missing spaces in log messages

###############################

Release: 1.4.12
Date:    2018.12.19
Name:    Release 1.4.12
Description:
Add core privileges
Set nullptr to reused data pointer
Fix issues raised by static analysis
Change local permissible file location to use UID rather than username

###############################

Release: 1.4.11
Date:    2018.11.22
Name:    Release 1.4.11
Description:
Protect security_manager_app_has_privilege with privilege check
Check some poll() and mount() errors
Fix documentation headers with required privilege descriptions
Fix function name spelling error
Change config.cpp variables to #define

###############################

Release: 1.4.10
Date:    2018.11.02
Name:    Release 1.4.10
Description:
Replace runtime production/test db choice with compile-time policy
Replace smack rule storage with straight-from-db rule loader
Optimize package installation
Prevent smack rules leaking during multi-app hybrid pkg uninstall
Enable additional sqlite pragmas for robustness

###############################

Release: 1.4.9
Date:    2018.09.27
Name:    Release 1.4.9
Description:
Add privilege for checking app permission

###############################

Release: 1.4.8
Date:    2018.09.20
Name:    Release 1.4.8
Description:
Fix security-manager/libsecurity-manager-client cyclic dependency

###############################

Release: 1.4.7
Date:    2018.09.18
Name:    Release 1.4.7
Description:
Fix build break with 1.65.1 boost version

###############################

Release: 1.4.6
Date:    2018.09.17
Name:    Release 1.4.6
Description:
Add core privilege: updatecontrol.admin and permission.check

###############################

Release: 1.4.5
Date:    2018.09.13
Name:    Release 1.4.5
Description:
Move standard users group management from GUM to security-manager
Lazily initialize variables that need tz-platform-config
Attempt database fallback recovery on some schema errors
Change naming of recovery-management file & functions
Optimize application uninstallation
Simplify array size calculation
Prefer std::vector::emplace_back to push_back in db code

###############################

Release: 1.4.4
Date:    2018.08.24
Name:    Release 1.4.4
Description:
Initialize database and restart service in policy-reload
Give internet privilege to kernel thread(@)
Add error logs when translating group names to gids
Drop unused destroyAt()
Fix: Remove all SharedRO rules after pkg uninstallation.
Fix: launch security-manager-cleanup after /opt/usr is mounted.
Remove fileExists() duplicates
Add Apache 2.0 license header
Change way of displaying performance test results
Rework security-manager-migration script as a policy update script
Remove unused source code

###############################

Release: 1.4.3
Date:    2018.08.07
Name:    Release 1.4.3
Description:
Add removal of DB broken flag before atempt to setup DB
Add database snapshotting and recovery
Pull db migration into manager binary at startup
Sanitize privilege_db query storage
Fix memleak in PrivilegeDb()
Add /opt/usr/media to privilege-mount.list again
Retrieve package manager privilege from User::Shell client
Make spec compliant with gbs --incremental
Add TZ_SYS_MEDIASHARED to privilege-mount.list
Change log message in realPath
Make server keep its original log tag
Fix hybrid pkg uninstallation

###############################

Release: 1.4.2
Date:    2018.06.20
Name:    Release 1.4.2
Description:
Adjust build to boost 1.65.1
Add detection of bad sizes/lengths of deserialized containers
Add protection against leaking memory during deserialization

###############################

Release: 1.4.1
Date:    2018.05.17
Name:    Release 1.4.1
Description:
Refactoring/removing unnecessary branches
Add %build in spec file
Fix mount namespace setup in case of multiple apps in one pkg

###############################

Release: 1.3.4
Date:    2018.04.25
Name:    Release 1.3.4
Description:
Allow is_hybrid flag change during app upgrade

###############################

Release: 1.3.3
Date:    2018.04.09
Name:    Release 1.3.3
Description:
Add core privilege voicecontrol.manager, softap and softap.admin

###############################

Release: 1.3.2
Date:    2018.04.04
Name:    Release 1.3.2
Description:
Fix build error regarding to Cmake upgrade

###############################

Release: 1.3.1
Date:    2018.02.28
Name:    Release 1.3.1
Description:
Allow application to fetch its own manifest
Add full get_app_manifest_policy API implementation
Add serviceImpl of getAppManifestPolicy function
API prototypes for checking app manifest policy
Database Performance Test
license-manager-agent: fix memory leak

###############################

Release: 1.3.0
Date:    2018.01.17
Name:    Release 1.3.0
Description:
Fix MountNS::isPathBound()
Fix NSMountLogic in case when user has no running applications
Identify apps by Smack label instead of appName in NSMountLogic
During application start, privileged directory enforced by bind mount may be missing
client: do not add application process to hardcoded groups
Add core privilege: devicecertificate
Monitor mount/umount events on the system and update app mount namespaces
Refactoring: make NSMountLogic class responsible for Channel and MntMonitor
Add security_manager_cleanup_app() API
Change license-manager package name
Add explicit dependency on libnss-security-manager
Fix API for freeing policy entries
Refactor security_manager_create_namespace_internal()
Refactor security_manager_prepare_app()
Optimize tracking of application mount namespace

###############################

Release: 1.2.30
Date:    2017.12.07
Name:    Release 1.2.30
Description:
Fix bugs found in the code by static analysis
Fix the bug for clearing SharedRO Smack rules
Fix the potential memory leak.
security-manager-cmd: add new option "manage-privilege" for policy manipulation
Add hybrid flag setting to security-manager-cmd
Add ConfigFile class for run-time reading and parsing of config files
Allow privilege enforcement with bind mounts to be configured
Don't enable mount namespace code when the config file is missing or empty

###############################

Release: 1.2.29
Date:    2017.11.17
Name:    Release 1.2.29
Description:
Adding privilege group priv_tee_client.
Include empty rules.merged file in the package

###############################

Release: 1.2.29
Date:    2017.11.03
Name:    Release 1.2.29
Description:
Add support for external storage directories
When preparation of database connection fails, indicate this with a file fleg
Fix security-manager package installation/update
Remove duplicated -fPIC flag
Fix database script
Add test to check TizenVersion update in database.

###############################

Release: 1.2.27
Date:    2017.10.18
Name:    Release 1.2.27
Description:
Prepare app_inst_req for handling multiple app_ids at once
Add new API for installing pkg_id with multiple app_ids at once
Add new functions to filesystem operations wrapper
Add mount namespace operations wrapper
Add IPC channel implementation
Prepare app to launch in mount namespace
Modify app launched in mount namespace
Gotta catch 'em all (TizenPlatformConfig::Exception)
Fix: Check if file exist before umount is made

###############################

Release: 1.2.26
Date:    2017.09.28
Name:    Release 1.2.26
Description:
Add core privilege: peripheralio
Remove core privilege: d2d.datasharing
Remove redundant file info from SM dlog logs

###############################

Release: 1.2.25
Date:    2017.09.18
Name:    Release 1.2.25
Description:
Redo C-style var args methods
User dynamic cast for base-to-derived conversion

###############################

Release: 1.2.24
Date:    2017.08.09
Name:    Release 1.2.24
Description:
Fix license-manager rpm install/update/erase
Enforce PIE through main CMakeLists

###############################

Release: 1.2.23
Date:    2017.08.07
Name:    Release 1.2.23
Description:
Add core privilege: gesturegrab, gestureactivation
Fix bugs reported by C++Test and SVACE
Change coding style in socket-manager.cpp
Fix database upgrading from v10 to v11
Fix buffer overflow in exception.h
Replace getgrent with getgrnam_r in security_manager_groups_get
Fix race condition in reading credentials

###############################

Release: 1.2.22
Date:    2017.07.20
Name:    Release 1.2.22
Description:
Fix segfault in nss plugin

###############################

Release: 1.2.21
Date:    2017.07.11
Name:    Release 1.2.21
Description:
Allow application to fetch its own policy
Optimize group processing performance
Add core privilege: blocknumber.read, blocknumber.write

###############################

Release: 1.2.20
Date:    2017.06.30
Name:    Release 1.2.20
Description:
Remove dependency to Nether
Add missing else keyword
Fix memory allocation loop
Apply -fPIE and -pie flag to license-manager
Verify if certificate CN entry is equal to pkgId.
Refactor error handling on app_defined_privilege/client_license table
Change license-manager-agent uid/gid to security_fw
Accept null as appId during license extraction
New schema of database
Apply coding rules
Implement certificate verification inside agent
Improve implementation of appdefined privilege API
Remove outdated 'CREATE INDEX + performance tests required' TODO
security-manager-cmd: add new option "manager-apps" for app install/uninstall
Support security_manager_app_uninstall calling in off-line mode

###############################

Release: 1.2.20
Date:    2017.05.19
Name:    Release 1.2.20
Description:
Merge remote-tracking branch 'origin/appdefined' into tizen
Add core privilege: tee.client
Add core privilege: zigbee, zigbee.admin

Release: 1.2.18
Date:    2017.04.27
Name:    Release 1.2.18
Description:
Adjust UT case T520_add_application_two_tizen_versions_to_same_package
Adjust tests to boost 1.62
Fix issues detected by SVACE
Revert of changes related to privacy popups
Do not show toast fail launch popup for white list app.
Handle HW key input case from askuser popup.
Adapt requirement names for askuser-notification to new naming
Migrate existing application policy to use new ask-user policies
Implement security_manager_prepare_app_privacy
Add new API for handling privacy privileges during application launch
Replace usage of Ask User plugin with Privacy Deny Plugin
Change labelPaths logic for FOTA

###############################

* Thu Mar 30 2017 Jin-gyu Kim <jin-gyu.kim@samsung.com>
- Version 1.2.18
- Use %license macro to copy license file.
- Add "VALGRIND" build type
- Remove the redundant SharedRO SMACK rules.
- Unify method names in CynaraAdmin to pascal case
- Clean up cynara classes members names
- Free requests after processing them in cmd line tool
- Add missing ')' in cmd line tool usage description
- Allow version compatibility change during application upgrade
- Remove dependency between SM and DBUS
- Make it possible to use out-of-the-source build dir
- [Unit tests] for PrivilegeDb class - related to private path sharing
- Remove setting of CMAKE_C_FLAGS in the main CMakeLists.txt
- Fix inconsistent types error
- Log appId in case of errors in security_manager_prepare_app
- Remove setting of -DTIZEN_DEBUG_ENABLE compilation flag
- Remove unnecessary transaction rollback
- Remove empty lines from rules.merged file.
- Don't ignore errors in supplementary group setup during app launch preparation
- Fix thread synchronization in Cynara class

* Mon Jan 23 2017 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.16
- Fix in generateAppPkgNameFromLabel implementation
- [Unit tests] Add test for src/common/include/smack-labels.h
- [Unit tests] Add test for src/common/include/smack-rules.h
- Remove default dependency in cleanup service

* Wed Jan 18 2017 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.15
- Split service cleanup in two parts to prevent std::terminate
- Use real path of skel dir

* Fri Jan 13 2017 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.2.14
- Add missing exception handler for TizenPlatformConfig
- Add support for blacklist privileges using policy manager
- Wake up Cynara async thread from statusCallback
- Make sure transaction is rolled back in case of error

* Thu Jan 5 2017 Jin-gyu Kim <jin-gyu.kim@samsung.com>
- Version 1.2.13
- Fix memory leak in CynaraAdminPolicy move operator
- Fix memory leak in CheckProperDrop::getThreads()
- Don't put empty lines in generated Smack policy
- Set Cynara client cache size manually
- Fix compilation scripts.
- Replace read/write with send/recv
- Fix memory leak from cynara_async_configuration_create
- Fix comments in privilege_db.h regarding exceptions thrown by functions
- Fix in logs in IsPackageHybrid function
- Disable logs from SqlConnection
- Change auto_ptr to unique_ptr.
- Replace readdir_r to readdir.
- Don't accept wrong package id on app uninstall
- Remove ServicerImpl from derived Service class
- Fix in GetAllPrivateSharing implementation
- Enforce ownership of a shared path by one app.
- Change skel directory to /opt/etc/skel

* Wed Dec 14 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.12
- Allow privileged caller to configure privacy manager for other users

* Thu Dec 13 2016 Jin-gyu Kim <jin-gyu.kim@samsung.com>
- Version 1.2.11
- Map email privilege to priv_email

* Fri Dec 9 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.10
- Add transmute rule between non-hybrid app and RW path

* Wed Dec 7 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.9
- Properly handle case of unknown "Ask user" policy

* Mon Dec 5 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.8
- Add new parameter of isPrivacy function - pkgName

* Thu Dec 1 2016 Bartlomiej Grzelewski <b.grzelewski@samsung.com>
- Version 1.2.7
- Fix in GetGroups implementation
- Add security_manager_shm_open

* Fri Nov 11 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.6
- Fix sigaction() on x86_64 arch
- Add 'l' permission to sharedRO Smack rule

* Tue Nov 8 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.5
- Fix build break on 64 bits architectures

* Tue Nov 1 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.4
- Enable security-manager support for starting without systemd

* Mon Oct 24 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.2.3
- Update policy set for 'security' user type
- Cleanup Fix ListUsers parameter description
- SM : Unify Smack rules of System access to application
- Use smack_check() helper function instead of manually calling libsmack
- Provide proper placeholder file for global apps-labels
- Don't hard-code /usr/share directory in FOTA script
- Add FOTA script for security-manager policy update
- Use SIGSETXID for security synchronization across threads
- [Unit tests] for FileLocker class
- Fix retrieving of current process credentials for off-line client
- Extend ClientOffline
- client: extract common code for communication with service
- Improve handling of uncaught exceptions in client library
- server: add missing linking against pthread
- Treat web only privilege as core privilege

* Mon Oct 10 2016 Seongwook Chung <seong.chung@samsung.com>
- Version 1.2.2
- Add packagemanager.info privilege for 'User::Shell' domain
- Limit number of sql queries during installation
- Explicitly instantiate LogSystemSingleton
- PrivilegeDb: Add getting packages installed for user
- ServiceImpl: Optimize generating package process labels
- Remove Cynara singleton
- PermissibleSet: Remove PrivilegeDb usage
- Remove PrivilegeDb singleton
- Remove CynaraAdmin singleton

* Wed Sep 28 2016 Rafal Krypa <r.krypa@samsung.com>
- Version 1.2.1
- Change the way of app process label generation
- Update default policy for new domain('User::Shell')

* Tue Sep 20 2016 Rafal Krypa <r.krypa@samsung.com>
- Version 1.2.0
- Add internal privilege for internal APIs
- Add support for USER_TYPE_SECURITY
- Add policy versioning
- Add API for identifying application from Cynara client

* Mon Sep 05 2016 Yunjin Lee <yunjin-.lee@samsung.com>
- Version 1.1.17
- Add/remove core privilege(fido.client/ dpm.settings)
- Remove core privilege : vpnservice.admin
- Fix log prefix (tag) for Pedantic log level
- Check tgkill() result
- Move release fence after the last global variable is modified
- Replace obsolete tkill with tgkill
- Add variadic template for deserialization

* Mon Aug 29 2016 Jin-gyu Kim <jin-gyu.kim@samsung.com>
- Version 1.1.16
- Implement libnss_securitymanager
- Add security_manager_groups_for_uid()
- Rewrite shared RO directory support in security-manager

* Mon Aug 22 2016 Yunjin Lee <yunjin-.lee@samsung.com>
- Version 1.1.15
- Add core privilege: appdir.shareddata

* Fri Aug 12 2016 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.1.14
- Moving user and global apps-names files to /opt/var
- Simplify declaration and generation of unique_ptrs
- Fix contraints for app installation.

* Fri Jul 22 2016 Yunjin Lee <yunjin-.lee@samsung.com>
- Version 1.1.13
- Fix typo in service file SmackProcessLabel set

* Thu Jul 21 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.1.12
- Handle missing Cynara error codes, throw specific exceptions
- Add missing logs in service on several service calls
- Mark old path registration function as deprecated
- Set SmackProcessLabel to System::Privileged

* Thu Jul 14 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.1.11
- Add systemd option - Restart
- Update policy template for onlycap feature

* Fri Jul 01 2016 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.1.10
- Don't store application privileges in db
- Fix return type in setup_smack function
- Do not exit when security_manager_prepare_app fails

* Tue Jun 28 2016 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.1.9
- Define PATH environment variable in scripts.
- Fix wrong tizen2X apps fetching on app uninstall

* Thu Jun 23 2016 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.1.8
- Fix global apps deinstallation
- Remove DPL String class and dependencies on it
- Add internal privilege for web only privilege
- ServiceImpl: remove sharing rules on application uninstall
- PrivilegeDB: Add private sharing squashing
- PrivilegeDB: Add getters for fetching owner/target private sharing
- Return error when private sharing doesn't exist

* Thu June 16 2016 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.1.7
- Add internal privilege for app debugging
- Add core privileges
- Add check if privileges were properly dropped
- Threads security context synchronization
- Added parameter mode and made more generic getDirContents function
- Prepare setup_smack client function for running without CAP_MAC_ADMIN
- Fix installation user mangling
- Disable ASKUSER policy by default
- Fix policy access control for accessing another user's policy
- Add proper policy setup for privacy-related privileges
- Fix doxygen comments

* Wed May 25 2016 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.1.6
- Fix issues with local user app instalaltion and inotify file watches.
- Fix and generalize generation of default "apps-names" configuration files
- Allow application directories to be placed in /etc/skel/apps_rw
- Introduce an interface class for tzplatform-config
- Implement API for managing list of permitted labels for launcher
- Simplify and fix code generating SharedRO Smack rules
- Cleanup around Tizen2X apps/packages generation functions
- Add tizen version handling to the cmd line tool
- Add dlog log provider. Make log backend configurable.
- Revert "Completely remove dlog remainings"

* Wed May 18 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.1.5
- Fixing small spelling error in db.sql, reproduction only with building new image with MIC
- Require usermanagement permission for local app installation for other users
- Fix the update of package cross-rules during uninstallation
- Path registration requests - server side implementation
- Path registration requests - client side implementation
- Move author_id to pkg - server code adjustment
- Move author_id to pkg - db migration
- Add path registration API stub
- Add privilege-group mapping for tethering.admin privilege

* Mon May 9 2016 Jooseong Lee <jooseong.lee@samsung.com>
- Version 1.1.4
- Use wildcard user in cynara policy installing a preloaded app

* Mon May 2 2016 Tomasz Swierczek <t.swierczek@samsung.com>
- Version 1.1.3
- Change logic of security_manager_set_process_groups_from_appid
- Don't check permissions on API calls in off-line mode
- Fix implementation of filesystem.cpp
- Move smack files to new directory
- refactoring: use common function template for getting label by libsmack
- Add installation types (global, local, preloaded).
- Integrate with Cynara, clients must be privileged
- db: update schema to version 2
- Add constraint error in database logic.
- More error messages
- Use app instead of app_pkg_view in sqlite queries
- security-manager-policy-reload: don't print errors on image build
- Add privilege-group mapping for iotcon
- Remove unused table version
- Adjust Cynara privileges required by privacy manager APIs
- Revert "Add installation types (global, local, preloaded)."
- DB: Change app ids to app names in private sharing
- Revoke subject label of uninstalled application

* Wed Mar 23 2016 Yunjin Lee <yunjin-.lee@samsung.com>
- Version 1.1.2

* Mon Mar 21 2016 Keeho Yang <keeho.yang@samsung.com>
- Updated version for release

* Thu Sep 03 2015 Rafal Krypa <r.krypa@samsung.com>
- Version 1.1.0
- Master-slave mode to support Vasum (Tizen containers)
- New API for support of privilege mapping between platform versions
- New API for getting list of groups mapped to privileges
- Updated policy for labeling application files\
- Always print warning log messages

* Wed Mar 25 2015 Jacek Bukarewicz <j.bukarewicz@samsung.com>
- Version 1.0.2
- Work around application installation problems on slow targets

* Fri Mar 20 2015 Rafal Krypa <r.krypa@samsung.com>
- Version 1.0.1
- Bug-fix release, no new features.

* Fri Mar 06 2015 Rafal Krypa <r.krypa@samsung.com>
- Version 1.0.0
- User management
  - Support for managing policy per user
  - Interface for registering user creation and removal
  - Hook-based Integration with gumd for user creation/removal events
  - Initial user policy based on user type (guest, normal, admin)
  - Initial configuration of user type policy granting all privileges to every
    user type
- API for managing per-user policy
  - Support for user-admin-like interface for tuning per-user policy by
    administrator
  - Support for privacy-manager-like interface for users limiting their own
    applications
- Off-line mode supporting limited functionality when service is not running
  - Application installation
  - User creation
- Command line tool wrapping some of security-manager's APIs
  - Registration of application installation and deinstallation with privileges
    and application paths
  - Registration of user creation/removal (for gumd integration mentioned above)
- Enhanced configuration of Cynara policy
  - Structured policy based on several buckets
  - Initial policy created on security-manager installation
  - Programs with "User" and "System" labels get access to all privileges (with
    regard to per-user policy)
- Easier setup of privilege-group mapping
  - A config file with the mapping and command line tool for importing it to
    security-manager
- Smack labeling for applications in final form
  - No longer hard-code labels of all applications to "User"
  - Each application gets unique Smack label based on appId

* Tue Sep 18 2014 Rafal Krypa <r.krypa@samsung.com>
- Version 0.2.0
- No longer use libprivilege-control
- Set Cynara policies during installation
- Support group-mapped privileges
- Use designated user for global app installation instead of root

* Fri Jul 25 2014 Stephane Desneux <stephane.desneux@open.eurogiciel.org>
- Keep information about installed applications in private data base
- Complete support for uninstallation
- Support per user installation of applications
- Properly handle multiple applications with the same pkgId
- Add API for launchers setting Smack label during application start
- Systemd integration
- Log to systemd journal instead of dlog

* Wed Jun 18 2014 Rafal Krypa <r.krypa@samsung.com>
- Version 0.1.0
- Initial release of standalone security-manager, splitting from security-server