Andras Timar
1f7da1f5a2
loolwsd: install and package SSL key and certs if SSL is enabled
2016-04-14 18:47:50 +02:00
Andras Timar
a8601804ac
loolwsd: process loolwsd.xml.in
2016-04-14 15:06:49 +02:00
Andras Timar
ec9aa4a50f
loolwsd: fix SSL certs/key install
2016-04-14 14:50:48 +02:00
Andras Timar
1f560af63a
loolwsd: discovery.xml to datadir
2016-04-14 14:43:31 +02:00
Andras Timar
60c969cd77
add security.h to tarball
2016-04-14 12:35:50 +02:00
Andras Timar
24bc458741
define LOOLWSD_CONFIGDIR and LOOLWSD_DATADIR
2016-04-14 12:34:11 +02:00
Jan Holesovsky
1e58864230
Revert unwanted change of hello.odt, and prevent that from happening again.
2016-04-14 11:40:17 +02:00
Jan Holesovsky
efb67d68fd
The host= parameter for loleaflet.html does not exist any more.
...
Now loolwsd fills that in directly.
Also show http:// or https:// in 'make run' according to the configuration.
2016-04-13 18:42:07 +02:00
Jan Holesovsky
cc3ee1033b
Make the autotools steps reliable.
2016-04-12 09:39:53 +02:00
Tor Lillqvist
255f9304e9
Fix build without --with-lo-path
2016-04-12 09:29:57 +03:00
Michael Meeks
ea1e2493bf
Re-factor tests, move jails & systemplate up a level into loolwsd.
...
Also generate the test scripts with config.status containing absolute
paths to make them easier to run, and enable the older unit tests.
2016-04-11 22:01:49 +01:00
Michael Meeks
b308792801
Add infrastructure to inject test pieces into loolforkit.
2016-04-09 18:17:12 +01:00
Michael Meeks
7d62c74b83
Fix segv on failure to create a storage, and add unit test infra.
2016-04-07 22:21:14 +01:00
Michael Meeks
86ebefce50
Get subdirs build order right for tests.
2016-04-07 22:21:14 +01:00
Michael Meeks
ad13dca8f8
First cut at adding integration and unit test hooks into loolwsd.
...
Add new configure parameter --with-lo-path= which can be used to
auto-populate a system template as required.
2016-04-07 19:38:33 +01:00
Michael Meeks
36d734ab81
Rename loolbroker to loolforkit.
...
Now we have just one broker - the DocumentBroker inside WSD.
2016-04-05 14:45:46 +01:00
Michael Meeks
6ec2e8ca68
Rename loolbroker to loolforkit - and split the child to LOOLKit.
...
Move ChildProcessSession to shared_source and fix the static
ClientPortNumber issue.
2016-04-05 14:45:46 +01:00
Tor Lillqvist
d137653db5
Avoid over-engineering: Insert Capabilities.hpp in the only file where used
2016-04-04 10:05:30 +03:00
Tor Lillqvist
a132e06409
Bin the non-preinit and non-fork code paths
...
Preiniting LibreOfficeKit and forking kit processes (instead of
spawning) has worked fine for a while, and has been the default way
this works.
No 'loolkit' program gets built any more.
2016-04-04 09:07:59 +03:00
Michael Meeks
1b25179b25
Use bind mounting to accelerate jail creation.
...
of the 10k files still linked into the jail; 5700 are from usr/
so bind mount just that directory, also set noatime, ro, and
some other helpful looking options.
Change-Id: I28d2d5cbbdf33fb57ea0f0c0915cb267603ee16d
Reviewed-on: https://gerrit.libreoffice.org/23777
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-04 04:03:37 +00:00
Pranav Kant
4ae077200c
loolwsd: Separate AdminModel header and implementation
...
Change-Id: Iddf107aa7985988deba800030e75243a831a7532
2016-03-31 13:00:30 +05:30
Pranav Kant
939388c6e6
loolwsd: Arrange sources/header in makefile alphabetically
...
Change-Id: I0bc70b34a590d84ac9c15f0d9d0000d02cadba74
2016-03-31 12:57:44 +05:30
Pranav Kant
f1ede0c4ba
loolwsd: Split Storage, Auth classes into header/impl files
...
Change-Id: I5d8990db8f8f4aa7a88bbb0cc84b97149cf4f8c0
2016-03-31 12:57:44 +05:30
Ashod Nakashian
b25fe9d88a
loolwsd: moved SocketProcessor to IoUtil and generalized more
...
Change-Id: I527e57d2430e21249cf8cd4867f22fdbbd092b09
Reviewed-on: https://gerrit.libreoffice.org/23637
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-03-30 01:45:20 +00:00
Ashod Nakashian
ce2fabb733
loolwsd: moved IO utilities into IoUtil file
...
Change-Id: I1e8d5562787134cbb490c38b19d83b7514ec9baa
Reviewed-on: https://gerrit.libreoffice.org/23586
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-03-29 14:09:04 +00:00
Jan Holesovsky
22914aacd1
loolwsd: Install the certificates during the build.
2016-03-29 13:29:07 +02:00
Michael Meeks
b499743932
Print what is done for capabilities.
2016-03-29 12:19:18 +01:00
Andras Timar
f94cdbd36c
loolwsd: add FileServer.hpp to dist
2016-03-23 19:46:32 +01:00
Pranav Kant
cfac07e3a1
loolwsd: Split DocumentBroker to its header and impl file
...
Change-Id: I8219300e271892f9f8fdecd8b38d9ea445cb7199
2016-03-23 22:16:35 +05:30
Pranav Kant
844ff4c571
loolwsd: Use automake generated tag rules to create tags file
...
Automake already have rules, make tags and make ctags, for emacs
and vim style tags respectively. We can pass our custom flags to
them using the AM_ macros.
https://www.gnu.org/software/automake/manual/html_node/Tags.html
This commit also adds support to create emacs style tags using
automake's pre-generated tag rules.
Change-Id: I4f6ed997fab6964b3c1f6637e3fd0365f8d4c8b8
Reviewed-on: https://gerrit.libreoffice.org/23442
Reviewed-by: pranavk <pranavk@collabora.com>
Tested-by: pranavk <pranavk@collabora.com>
2016-03-22 18:53:36 +00:00
Andras Timar
638460381e
package and deploy discovery.xml
2016-03-17 15:24:09 +01:00
Andras Timar
213e678193
loolwsd: add DocumentBroker.hpp to dist
2016-03-15 13:25:00 +01:00
Tor Lillqvist
80c6a91d5d
Don't call setcap on loolkit before we have built it
...
On the other hand, loolwsd does not need capabilities any more.
Also update the comment to match reality, and explain in more detail
what is going on.
2016-03-07 13:10:45 +02:00
Pranav Kant
85c6467344
loolwsd: Move Admin class to separate header
...
As a test, add command to fetch documents from AdminModel.
Change-Id: I3cb7097ba7dde049f3b2478fe7b6b6c309da1d92
Reviewed-on: https://gerrit.libreoffice.org/22781
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2016-03-03 18:26:55 +00:00
Pranav Kant
c5aa122fcb
loolwsd: Create notification pipe
...
... and Admin and AdminModel containing all the required data
that we need to expose to Admin panel.
Admin processor will keep listening to any data on this
notification pipe and update AdminModel accordingly.
Change-Id: I0dd6f07ae60158733c34d17f53a35def70600513
Reviewed-on: https://gerrit.libreoffice.org/22780
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-03-03 03:34:47 +00:00
Tor Lillqvist
78579b3e57
Don't pretend to support non-Linux here either
2016-03-01 18:30:07 +02:00
Tor Lillqvist
d5292541bd
Revert "Also chown the random devices to root:root and chmod to 666"
...
Not needed after all. It was a red herring. The device files work fine
even if not owned by root:root and with mode 664. The actual problem
was that I used a file system mounted with nodev when testing loolwsd.
This reverts commit 509314d559
2016-03-01 18:24:55 +02:00
Tor Lillqvist
29a3f58f1a
The loolwsd program does not need any capabilities
...
So don't give it any then.
Remove the --uid option and related attempts to handle running loolwsd
under sudo, to be able to debug it. Now with loolwsd not having
capabilities, it should work fine to just run it under a debugger
normally. (For the loolbroker and loolkit processes, attaching to an
already started process is the way to debug.)
2016-02-29 14:13:19 +02:00
Tor Lillqvist
509314d559
Also chown the random devices to root:root and chmod to 666
...
Otherwise they won't work. Not that I know whether this helps
anything, really. At least the NSS crypto initialization still takes a
long time.
2016-02-29 12:15:22 +02:00
Andras Timar
33f66d4686
loolwsd: add new headers to distribution tarball
2016-02-22 11:16:05 +01:00
Henry Castro
9e3d5c0337
loolwsd: ensure chroot jail every lokit process
2016-02-13 10:15:28 -04:00
Andras Timar
7cf9cdd4c8
loolwsd: add QueueHandler.hpp to dist tarball
2016-01-14 13:43:54 +01:00
Andras Timar
207925266c
loolwsd: add Rectangle.hpp to dist tarball
...
(cherry picked from commit 69222ace7a67ca8adc9a21a988436aad92883b51)
2016-01-14 13:19:48 +01:00
Ashod Nakashian
5b3c9bff2e
loolwsd: tabs -> spaces
...
Change-Id: I93619e2d5f93d104d34af9bda60f87e300e39963
Reviewed-on: https://gerrit.libreoffice.org/21164
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-06 14:31:02 +00:00
Ashod Nakashian
c3826587e1
loolwsd: moved QueueHandler into own file
...
Change-Id: I281a9bd12731340673cb66f1f2ac6a133cbe71d0
Reviewed-on: https://gerrit.libreoffice.org/21159
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-06 14:23:39 +00:00
Miklos Vajna
024d498c10
loolwsd: fix missing loolbroker dependency
...
Change-Id: Ia47eb8c055cbab68f42e847d4ab9cd86f1fa3691
2016-01-05 09:10:28 +01:00
Ashod Nakashian
f48d61d25d
loolwsd: dropCapability moved to Capabilities.hpp
...
Change-Id: Id84d485b446040df1d5398341af2b0e8f300ed63
Reviewed-on: https://gerrit.libreoffice.org/21060
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-03 15:17:05 +00:00
Ashod Nakashian
d273057488
loolwsd: moved config values into common header
...
Change-Id: Ib88379e453f207a6a5e6223045a393c769082be4
Reviewed-on: https://gerrit.libreoffice.org/20978
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-28 04:09:50 +00:00
Henry Castro
1bd85bc641
loolwsd: merged loolmap
...
Change-Id: I43845ce5f45c01a67db32ab136ad96b70bc31217
Reviewed-on: https://gerrit.libreoffice.org/20908
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:11:44 +00:00
Henry Castro
2c1e44d218
loolwsd: LOOLBroker process added
...
Change-Id: Ia7332761766026599b8ef415652874371938d311
Reviewed-on: https://gerrit.libreoffice.org/20903
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:11:23 +00:00