summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-03-30License: add license files for systemd-analyze packagesubmit/tizen/20170330.062718accepted/tizen/wearable/20170330.224640accepted/tizen/unified/20170330.224653accepted/tizen/tv/20170330.224633accepted/tizen/mobile/20170330.224616accepted/tizen/ivi/20170330.224647accepted/tizen/common/20170330.151825accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonINSUN PYO1-0/+1
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: Iea4a6b72d5c277e1bcf3a4604ec6c5b603d1d973
2017-03-28Merge "License: add license files" into tizensubmit/tizen/20170329.022045accepted/tizen/wearable/20170329.222326accepted/tizen/unified/20170329.222339accepted/tizen/tv/20170329.222311accepted/tizen/mobile/20170329.222249accepted/tizen/ivi/20170329.222333accepted/tizen/common/20170329.172141INSUN PYO1-3/+6
2017-03-28License: add license filesINSUN PYO1-3/+6
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I39d99a2040f267c29529d331ff5de7591cbf1fa5
2017-03-24core: Fix USB functionfs activation and clarify its documentation (#4188)Paweł Szewczyk2-9/+4
There was no certainty about how the path in service file should look like for usb functionfs activation. Because of this it was treated differently in different places, which made this feature unusable. This patch fixes the path to be the *mount directory* of functionfs, not ep0 file path and clarifies in the documentation that ListenUSBFunction should be the location of functionfs mount point, not ep0 file itself. Change-Id: I320c34c0037f2bd6a6f6cf09a90eba632a54e9e9
2017-03-24packaging: Make documentation package optionalKarol Lewandowski1-0/+8
By default documentation is disabled. Change-Id: I33648ee019945d47d367e5db3abe84afa3400cc0
2017-03-22packaging: Simplify kdbus setup for Tizen:UnifiedKarol Lewandowski4-125/+44
This commit adds marker file to extension-kdbus package to signal that kdbus should really be used only if this package is installed. Additionally, build time is reduced by a half. Change-Id: I6d27b7c15985b189432fc7ff54bb4693cf79be24
2017-03-20spec: fix build error for aarch64 and x86_64submit/tizen/20170320.022333accepted/tizen/wearable/20170320.065252accepted/tizen/unified/20170320.065333accepted/tizen/tv/20170320.065248accepted/tizen/mobile/20170320.065221accepted/tizen/ivi/20170320.065310accepted/tizen/common/20170320.173536INSUN PYO1-4/+4
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I2c6bdd50e9ffbf95bce03ef3d9a3945c17f4b4ce
2017-03-20[4.0] Remove OBS Project Dependency (kdbus/TV)hk57.kim1-25/+113
- When you SR this, you need to create JIRA-TRE issue of: : add systemd-extension-kdbus for TV/arm-wayland images. - Without this commit, this package won't be built correctly in Tizen 4.0. (It's add, not replace.) Change-Id: Ic616a3b20450d4594857cc268e2dbf25e80dba37 Signed-off-by: hk57.kim <hk57.kim@samsung.com> Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com> Signed-off-by: hk57.kim <hk57.kim@samsung.com> Signed-off-by: insun.pyo <insun.pyo@samsung.com>
2017-03-16spec: Enable systemd-tests packagesubmit/tizen/20170317.143532accepted/tizen/wearable/20170320.010240accepted/tizen/unified/20170320.010313accepted/tizen/tv/20170320.010222accepted/tizen/mobile/20170320.010212accepted/tizen/ivi/20170320.010256Łukasz Stelmach1-19/+18
This reverts commit 7137c6fe9d362f69d14581ac1bde124b77930f67. Change-Id: I2679eb43d68d9d74075ed339c7b7f397c43bc340 Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2017-03-16Revert "busctl: use Monitoring interface (#3245)"Karol Lewandowski1-30/+15
This reverts commit 17fd746098bb, which reworks busctl monitor to use D-Bus' new BecomeMonitor call. This broke monitor on kdbus system so revert this change for now. Change-Id: I70626c03b375f692a184214a3d5055ec0a96b5c8
2017-03-16kdbus: Create dummy dbus.service and dbus.socket instead of maskingKarol Lewandowski1-6/+46
systemd >= v223 changed method of handling masked units. Currently unit that specifies Requires= on masked unit will fail to start. Previously enabling kdbus resulted in masking dbus.* units, which does not work in new systemd version. This change reworks dbus1-generator to resolve this problem. Change-Id: I855eb05b6d4f26798772fa6c4dd1d8223020cd6e
2017-02-24systemd-tests: set common output formatLukasz Skalski1-10/+9
Change-Id: Ia52ad37927bca67e36a932982523cfc75e80e640
2017-02-24kdbus: modify DBUS_SESSION_BUS_ADDRESS environment for user systemdINSUN PYO1-1/+1
Signed-off-by: INSUN PYO <insun.pyo@ubuntu1604.playinsun.pe.kr> Change-Id: Ie4f85324d1f5d010933b4433a2dd4b7aa4f6fb14
2017-02-24kdbus: mask dbus.socketINSUN PYO2-21/+5
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: Id168043bfe80c9e6c177b526c5bcae6475561096
2017-02-24Remove etc tmpfile generation as they are unusedsilas jeon3-24/+1
To support read-only root filesystem, there should be nothing modified on /etc. Also these five files in /etc are handled by other packages as below. So these are removed. os-release : tizen-release localtime : tzdata mtab : setup nsswitch.conf : glibc pam.d : pam Change-Id: I0dc490ddf6d299d956504405419e6c5d71e52a97
2017-02-24Remove mtab generation line from tmpfilesilas jeon1-1/+0
To support read-only root filesystem, there should be nothing modified in root filesystem. This line was made to make mtab symlink in /etc, so it should be deleted. Also, it was not used anyway. 'Setup' package is handling the mtabfile in /etc. Change-Id: I2ff30ec94ca5833a2b95762cd2d7715bb7f93476
2017-02-24Mv /etc/systemd/{system,user} to /opt/etc/systemd/silas jeon1-2/+9
To support read-only root filesystem, the unit file directories should be in the /opt directory. After Applying this patch, systemd moves /etc/systemd/{system, user} to /opt/etc/systemd/{system,user} and make symbolic links to them from old paths. Change-Id: If1315687c178fbe5345b721dca9d0b5369fcfab4
2017-02-24libsystemd : Fixed a bug of sd_get_active_uidswchang kim1-1/+1
sd_get_active_uids returns the number of normal active users. But the condition of normal user range is wrong. Change-Id: I7f2ab1ce7dfe5552f8a0d73cc374df56b78e3a3e Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24tizen : Disable the predictable network interface namewchang kim1-0/+2
Change-Id: Ic2f2d9b50bb5601d3ec7d5940284f89acab7d3f0 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24tizen: upgrade script patcheswchang kim2-3/+2
1) tizen : Adding the priority number to the filename of systemd_upgrade.sh (https://review.tizen.org/gerrit/#/c/101825/) 2) tizen: exclude upgrade script directory (https://review.tizen.org/gerrit/#/c/104341/) Change-Id: I708a8505fcd08ed5789e69e716163cf9cd0dd0be
2017-02-24journald: Limit system journal size to 10MHyeongsik Min1-1/+1
In v219, journald implicitly limits system journal(/var/log/journal) size to 8MB(twice of the minimum journal file size) with SystemMaxUse=0 setting. But in v231, journald doesn't stop allocating when max_use is 0. Change-Id: I6b36320191fcc69d5b45cfec5b27a462d0ab8310 Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
2017-02-24Revert "Add some groups for user session daemons"Rafal Krypa1-1/+0
Security-manager 1.1.16 has made this obsolete. There is no longer a need for manually adding privilege-related supplementary groups to user sessions. They will be added by a dedicated NSS plugin: libnss-security-manager. This reverts commit 78a648a0611caccdd87a38f99f65ba296608da69. Change-Id: Ic421a2ee65550762356784b585d2fba8645fbd5c
2017-02-24Description : Fixed to fail to systemd-hostnamed servicewchang kim1-1/+0
tizen platform links /opt/home to /home. systemd-hostnamed.service has the parameter - ProtectHome=yes. In this case, it occurs that systemd-hostnamed.service: Failed at step NAMESPACE spawning /usr/lib/systemd/systemd-hostnamed: Too many levels of symbolic links I can't change the link. So I removed "ProtectHome=yes". Change-Id: I640c2f6d410eb9aff7ba3d120a2ffb58b9990c95 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Adding to send new system signal for user session done.wchang kim3-0/+31
When user-session is done, systemd will send new system signal for user-session done. interface=org.freedesktop.systemd1.Manager,member=UserSessionStartupFinished UserSessionStartupFinished(t user_id) Change-Id: I2ee9a2f232c22428894217fc2a519ec9c017fb2c Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Added the compatiblie pkgconfig to v219 version.wchang kim1-0/+9
systemd v231 removed the libraries of login, id128, journal and daemon and merged the libsystemd. And it removed thier pkgconfig files. Other packages in tizen still use them. So we need to add their pkgconfig files. Change-Id: Ia120a0f2441cf9744ee192300a33d4b0d0cfb872 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Changed the spec file for systemd v231wchang kim1-19/+19
Change-Id: I50cc42956efb6093286b8bacdc3af4789c8b8fa0 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Descrciption : Fixed the mistakes of rebase v231.wchang kim2-12/+12
Change-Id: I9d770908f4e65d286756483b2e6b5909623949d7 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Changed the spec file for systemd-231wchang kim1-72/+32
Change-Id: I44eb84919bddf4d251e082b3a379aaae0b1ee9b5 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Apply dbus and kdbus for systemd 231wchang kim13-29/+450
It is applied by referring the branch of remotes/origin/sandbox/lstelmach/systemd-upgrade-231 Change-Id: Iaf7441140b96cad25753bb383577ae9ca4d8390c Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Fixing the mistakes of rebase.wchang kim8-145/+19
Change-Id: I1309509e17ce5a8f80e962344c6fd79c33725ecc Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Revert 479050b36302a360048c2af5e79683d14ad56fb3wchang kim9-25/+177
core: drop Capabilities= setting The setting is hardly useful (since its effect is generally reduced to zero due to file system caps), and with the advent of ambient caps an actually useful replacement exists, hence let's get rid of this. I am pretty sure this was unused and our man page already recommended against its use, hence this should be a safe thing to remove. Change-Id: I24367aea159b1decc732b3fbaf448a40e59f2634 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Adding new interfaces related to user information.wchang kim3-0/+191
1. int sd_get_active_uids(uid_t **users) - get active user uids. 2. int sd_get_systemd_uids(uid_t uid, uid_t **users) - get system user uids for uid 3. int sd_get_uid_type(uid_t uid) - get user type of uid. These interfaes are for multi-user feature. Change-Id: I35d9324c8a671b86fb4fb15552453bbf99f38227 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : pid1: don't return any error in manager_dispatch_notify_fd()wchang kim1-1/+2
If manager_dispatch_notify_fd() fails and returns an error then the handling of service notifications will be disabled entirely leading to a compromised system. For example pid1 won't be able to receive the WATCHDOG messages anymore and will kill all services supposed to send such messages. This patch is related to CVE-2016-7795 and CVE-2016-7796. Back-ported fbuihuu's committed on 29 Sep, commit f1e852245a30b60d5e6e0a487d049a04a40772fe Change-Id: I27b6b78cff23c774f6fbcc59dacefcdcc45e7326 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24sd-bus: add support for 'dbus-integration-tests' frameworkLukasz Skalski2-0/+598
Change-Id: Ie5da780d4c90d943676c5d1872d32d76af50478b
2017-02-24Fix for Kdbus-disabled Profiles to avoid busname parsingKarol Lewandowski1-1/+6
Change-Id: Id45193adf624d60fc3bfbda09c4f6c357ff90e2a
2017-02-24Description : Added the local PATH to a shell script.wchang kim1-0/+2
Adding the local PATH into 50-systemd-user.sh Change-Id: Ic466577a5db001d99a41410c950220cb49f3d55e Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Fixed the security hole.wchang kim1-0/+21
In case of "systemctl --user enable <path>", a application can insert the malicious user service. So systemctl can only enable the service with service name. Change-Id: I570f45985516ee3636720f36787080590e6f90ef Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Description : Added the upgrade script from 2.4 to 3.0wchang kim2-0/+22
systemd_upgrade.sh is installed to /usr/share/upgrade/scripts. It changes the smack rule for /var/log/wtmp and /var/lib/systemd. Change-Id: Iebffca3238bcedd195ec2e91afdf5e46a882ec42 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
2017-02-24Disable PolkitKunhoon Baik1-14/+1
Tizen uses Cynara instead of Polkit. https://wiki.tizen.org/wiki/Security:Cynara:ComparisonWithOtherSolutions Change-Id: I519d84e41225e9a4c3343bec74871727e51a54ad
2017-02-24usb: socket activation fixPaweł Szewczyk1-1/+1
There was no certainty about how the path in service file should look like for usb functionfs activation. Because of this ot was trated differently in different places, which made this feature unusable. This patch fixes the path to be the *mount directory* of functionfs, not ep0 file path. Change-Id: I387bed097d5246d020f81336027f4878a63d6c48 Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2017-02-24packaging: Do not append kdbus suffix conditionallyKarol Lewandowski1-3/+0
Appending suffix to release flags causes following warning - which terminates build process. warning: spec file systemd.spec has not been exported to .../GBS-ROOT/local/sources/tizen_org_tv/systemd-219-0+kdbus/ correctly, please check if there're special macros in Name/Version/Release fields This commit drops condional suffix. This is in line with other packages providing kdbus support (libdbus, glib). Change-Id: I91405faeb00352d8f615a6b9b73bdacf42f102df
2017-02-24kdbus: disable systemd-bus-proxydLukasz Skalski1-2/+8
Change-Id: Ie8199d7f9025c5322422916d0d87b30682f64b79
2017-02-24Watchdog : support to change timeout to USEC_INFINITY (disable timeout)Kunhoon Baik1-0/+2
Change-Id: I459471c2d210eb31c22a17e0e45653b3de04233a
2017-02-24Bug-fix for functionfs-activation patchesKunhoon Baik2-3/+3
Current Systemd Version (v219) uses old-style log. (no reworked log) Change-Id: Ief2f19ba85df5cef37a40a80783e6a3899774f51
2017-02-24watchdog: Support changing watchdog_usec during runtimeKunhoon Baik1-0/+12
(#3492) Add sd_notify() parameter to change watchdog_usec during runtime. Application can change watchdog_usec value by sd_notify like this. Example. sd_notify(0, "WATCHDOG_USEC=20000000"). To reset watchdog_usec as configured value in service file, restart service. Notice. sd_event is not currently supported. If application uses sd_event_set_watchdog, or sd_watchdog_enabled, do not use "WATCHDOG_USEC" option through sd_notify. Origin: https://github.com/systemd/systemd/commit/2787d83c2 Note: There are two additional patches for clean backport patch 1)rework unit timeout patch - https://github.com/systemd/systemd/commit/36c16a7cd 2)rework per-object logging - https://github.com/systemd/systemd/commit/f2341e0a8 However, we will not apply the patch for minimal backport Change-Id: Ic1a91dc4e611f3e92fdc734fb1eb70e27244aa37
2017-02-24time-util: Rename and fix call of deserialize_timestamp_value()Kunhoon Baik1-3/+2
The deserialize_timestamp_value() is renamed timestamp_deserialize() to be more consistent with dual_timestamp_deserialize() And add the NULL check back on realtime and monotonic Change-Id: I77d047981d87332424b20241a8f0514ba400ecb0 Origin: https://github.com/systemd/systemd/commit/b895a7353b
2017-02-24time-util: introduce deserialize_timestamp_value()Kunhoon Baik1-0/+13
The time-util.c provides dual_timestamp_deserialize() function to convert value to usec_t and set it as value of ts->monotonic and ts->realtime. There are some places in code which do the same but only for one clockid_t (realtime or monotonic), when dual_timestamp_deserialize() sets value of both. This patch introduces the deserialize_timestamp_value() which converts a given value to usec_t and write it to a given timestamp. Change-Id: I29140ec8b39aa2f7168671fd9dbac041044f13e4 Origin: https://github.com/systemd/systemd/commit/ebf30a086
2017-02-24Patch for unlimited timeout for User SessionKunhoon Baik1-1/+2
This patch should be used for specific purpose of Tizen Change-Id: Ida7448da300b0c4cf9a5189c6f8903a2e8729df3
2017-02-24kdbus: synchronize kdbus interface header between repositoriesKarol Lewandowski1-0/+4
Change-Id: I4294bcbe9782748478ad393c7ca349f0f4373f6f
2017-02-24Modification of journald configuration for minimal log savingKunhoon Baik1-3/+3
There were several requirements for minimal disk log. Especially, Default Tizen tries to keep the the log size under 10MB because Tizen provides other logging system DLOG. Change-Id: I633bf5a15041da8f40f8cde66e488c1b14f25045