serverengine 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f41fb5ab10422ecf515e12996073716be193c409
4
- data.tar.gz: ee3873c21deb46c90a6c45f3d0714371721ab1d0
3
+ metadata.gz: dc9d167dfb6f0aaf7013f7ca56cab07d7be13e4f
4
+ data.tar.gz: f32d19141aadf8a533d77eeccf2ae4001aed78e2
5
5
  SHA512:
6
- metadata.gz: 42654dde15071ba91aa60c36205cae8b43632d2c91b162a4c1cd1bcfa60d65fa1c967489cda13d21e8b5d5292273a31163dbe4906121ae3113864ba98f161d00
7
- data.tar.gz: 57c5e1b3cf3768af131eed3fd80c48b43afaaead1315ba64e38c30845e6b1a7ac13d199cbe78b3d16263bee3fd1f57ffcd83ca99ca09115311545d59ee0eb211
6
+ metadata.gz: 7630c828a3a7cf167644fc4e590d7d409638570695b996d3058b3ebe76ca5c9e644bc1830b6e00f93f3047caa0663d1073d4b133ee11eaf4c20f48867f0c5761
7
+ data.tar.gz: 1a01938dac11d1e9edf66e31c29f7ff11d1b88bf8bfa198dc29ada81c745371023d3efeaddd44e674b5e0d9eb738fd518f6a36cb60c73e0c7fbc039a9192634b
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 2016-10-18 version 2.0.1:
2
+
3
+ * Fix to set GID before UID, to make it sure to set GID with superuser privilege
4
+
1
5
  2016-08-23 version 2.0.0:
2
6
 
3
7
  * Add windows-pr gem dependency to get ruby_bin_path correctly
data/README.md CHANGED
@@ -498,8 +498,8 @@ Available methods are different depending on `worker_type`. ServerEngine support
498
498
  - Logger
499
499
  - **log** sets path to log file. Set "-" for STDOUT (default: STDERR) [dynamic reloadable]
500
500
  - **log_level** log level: trace, debug, info, warn, error or fatal. (default: debug) [dynamic reloadable]
501
- - **log_rotate_age** generations to keep rotated log files (default: 5)
502
- - **log_rotate_size** sets the size to rotate log files (default: 1048576)
501
+ - **log_rotate_age** generations to keep rotated log files (default: 5), 0 will disable log rotate.
502
+ - **log_rotate_size** sets the size to rotate log files (default: 1048576), when `log_rotate_age` is 0, the `log_rotate_size` value will be ignored.
503
503
  - **log_stdout** hooks STDOUT to log file (default: true)
504
504
  - **log_stderr** hooks STDERR to log file (default: true)
505
505
  - **logger_class** class of the logger instance (default: ServerEngine::DaemonLogger)
@@ -36,6 +36,11 @@ module ServerEngine
36
36
  end
37
37
 
38
38
  def self.change(user, group)
39
+ if group
40
+ etc_group = get_etc_group(group)
41
+ Process::GID.change_privilege(etc_group.gid)
42
+ end
43
+
39
44
  if user
40
45
  etc_pw = get_etc_passwd(user)
41
46
  user_groups = [etc_pw.gid]
@@ -46,11 +51,6 @@ module ServerEngine
46
51
  Process::UID.change_privilege(etc_pw.uid)
47
52
  end
48
53
 
49
- if group
50
- etc_group = get_etc_group(group)
51
- Process::GID.change_privilege(etc_group.gid)
52
- end
53
-
54
54
  nil
55
55
  end
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module ServerEngine
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sigdump