1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-14 16:58:25 +03:00

821 Commits

Author SHA1 Message Date
eeb8c3ce52
GSettings property application mechanism fixes and expansion 2020-07-13 16:00:22 +04:00
ace949d4ec
glib_map function to convert Python data to GLib (GSettings) type system 2020-07-13 15:59:10 +04:00
NIR
a37d87ae98
Merge pull request #47 from altlinux/sid_module
Module to operate on SIDs
2020-07-06 17:24:55 +04:00
63e7dab1ee
Appliers for GSettings expanded with Windows key support 2020-07-03 23:41:42 +04:00
6f68917355
Apply firewall rules only if firewall is explicitly enabled 2020-07-03 18:23:42 +04:00
a6defe8c41
Support for Windows firewall switch added 2020-07-03 17:09:15 +04:00
Evgeny Sinelnikov
48532716ac 0.7.0-alt1
- Add multiple appliers, part of which marks as experimental yet
0.7.0-alt1
2020-07-01 01:40:53 +04:00
Evgeny Sinelnikov
e8f72eeab4
Merge pull request #93 from altlinux/kinit_check_retcode
Check kinit and kdestroy for errors
2020-07-01 01:17:16 +04:00
Evgeny Sinelnikov
5525cf014e Avoid printing about setting log level 2020-07-01 01:00:07 +04:00
Evgeny Sinelnikov
18422ff986 Set kdestroy more silent
Avoid kdestroy output like:
Other credential caches present, use -A to destroy all
2020-07-01 01:00:06 +04:00
Evgeny Sinelnikov
3c061169bc Replace KRB5CCNAME to machine_kinit() 2020-07-01 00:59:57 +04:00
883ee62017
Check kinit and kdestroy for errors 2020-06-30 21:16:29 +04:00
Evgeny Sinelnikov
adf4ca4614
Merge pull request #92 from altlinux/switch_fixes
Switch fixes
2020-06-30 20:21:53 +04:00
a36fe32e05
Fixed polkit_applier_user module experimental check 2020-06-30 20:17:31 +04:00
3b258a5b71
Module enablement flag fix 2020-06-30 20:16:02 +04:00
NIR
7a90f3c0e6
Merge pull request #79 from altlinux/firewall_applier
Firewall applier
2020-06-30 17:56:49 +04:00
272785a780
Firewall applier logging improved 2020-06-30 17:55:56 +04:00
95e2f5dbb1
Feature switch for firewall applier 2020-06-30 17:47:15 +04:00
6df2f45b89
Fastfix for port opening 2020-06-30 17:42:52 +04:00
beb3ae9359
Firewall applier working with host mode 2020-06-30 17:42:52 +04:00
0f8db2fdcb
frontend.appliers.firewall_rule: fix comment length 2020-06-30 17:42:52 +04:00
12516b2a4b
Firewall rule wrapper initial implementation 2020-06-30 17:42:52 +04:00
a92d6c25b9
Enabled firewall applier 2020-06-30 17:42:52 +04:00
283825ecc2
Initial firewall applier implementation 2020-06-30 17:42:51 +04:00
2369384a2a
Firewall applier stub 2020-06-30 17:42:48 +04:00
NIR
d1e9c31bef
Merge pull request #88 from altlinux/experimental_feature
Experimental frontend modules' switch
2020-06-30 17:40:33 +04:00
NIR
63e4dd0767
Merge pull request #91 from altlinux/fix_ownership_problem
Fix TALLOC ownership problem in PReg parser
2020-06-30 17:38:56 +04:00
d0c13547a4
Loglevel changed 2020-06-30 16:07:05 +04:00
5880ac963e
Fix TALLOC ownership problem in PReg parser
This commit fixes the following error:

```
2020-06-30 00:18:25:add_hkcu_entry: S-1-5-21-1609667327-4120075585-2415302043-1109 Software\BaseALT\Policies\GPUpdate 0 4
Traceback (most recent call last):
  File "/usr/sbin/gpoa", line 145, in <module>
    main()
  File "/usr/sbin/gpoa", line 140, in main
    controller.run()
  File "/usr/sbin/gpoa", line 97, in run
    self.start_backend()
  File "/usr/sbin/gpoa", line 115, in start_backend
    back.retrieve_and_store()
  File "/usr/lib/python3/site-packages/gpoa/backend/samba_backend.py", line 71, in retrieve_and_store
    gptobj.merge()
  File "/usr/lib/python3/site-packages/gpoa/gpt/gpt.py", line 219, in merge
    preference_merger(self.storage, self.sid, preference_objects, self.name)
  File "/usr/lib/python3/site-packages/gpoa/gpt/polfile.py", line 31, in merge_polfile
    storage.add_hkcu_entry(entry, sid, policy_name)
  File "/usr/lib/python3/site-packages/gpoa/storage/sqlite_registry.py", line 242, in add_hkcu_entry
    valname = preg_entry.valuename
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 0: invalid continuation byte
```

This is the critical bug related to ownership problem in objects
managed by LIBTALLOC which leads to object destruction and freeing the
memory used by the object (and also corruption of this memory).

It is needed to transfer memory ownership from TALLOC to Python ASAP so
we're creating Python-managed object and copy the data into it.
2020-06-30 00:51:05 +04:00
d4119b47d4
Fixes for module checks 2020-06-29 21:18:29 +04:00
daf074d8dd
frontend_manager logging removed due to redundancy 2020-06-29 20:07:22 +04:00
e1df2dde54
chromium applier logging improved 2020-06-29 20:06:55 +04:00
e8c71aa913
cifs applier logging improved 2020-06-29 20:06:39 +04:00
3a16e6eb7e
control applier logging improved 2020-06-29 20:06:23 +04:00
44ec5ecc93
cups applier logging improved 2020-06-29 20:06:05 +04:00
0352da6d58
firefox applier logging improved 2020-06-29 20:05:44 +04:00
ac2ec348f2
folder applier fixes and logging improvements 2020-06-29 20:05:28 +04:00
fadd7de447
gsettings applier fixes and logging improvement 2020-06-29 20:05:03 +04:00
7c753098cd
package applier fix and logging improved 2020-06-29 20:04:30 +04:00
28637d099b
polkit applier logging improved 2020-06-29 20:04:06 +04:00
e4f17f2704
shortcut applier logging improved 2020-06-29 20:03:45 +04:00
1be13ea8ed
systemd applier logging improved 2020-06-29 20:03:23 +04:00
59743d7957
Return result! 2020-06-29 18:55:51 +04:00
Evgeny Sinelnikov
2d27c5580a
Merge pull request #90 from altlinux/hkcu_fix
sqlite_registry: Fixed samba_hkcu_preg mapping in query
2020-06-29 17:06:21 +04:00
23983f7316
sqlite_storage.get_hkcu_entry() 2020-06-29 16:59:30 +04:00
b616221562
sqlite_registry: Fixed samba_hkcu_preg mapping in query 2020-06-29 16:22:53 +04:00
292fd9238c
frontend: Bunch of fixes to make it work 2020-06-29 16:21:17 +04:00
36d0a92247
frontend: All-in-one fixes for module switches 2020-06-29 12:59:22 +04:00
f680a3025e
cups_applier: Run only if it is enabled 2020-06-26 20:18:23 +04:00
41f49e5bab
firefox_applier: Run only if it is enabled 2020-06-26 20:17:45 +04:00