Skip to content

Commit f0e9f0a

Browse files
authored
bug: change to more secure file permissions
1 parent ed6e82a commit f0e9f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner-core/src/main/java/org/apache/apisix/plugin/runner/server/ApplicationRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void start(String path) throws Exception {
114114
try {
115115
initServerBootstrap(bootstrap);
116116
ChannelFuture future = bootstrap.bind(new DomainSocketAddress(path)).sync();
117-
Runtime.getRuntime().exec("chmod 777 " + socketFile);
117+
Runtime.getRuntime().exec("chmod 700 " + socketFile);
118118
logger.warn("java runner is listening on the socket file: {}", socketFile);
119119

120120
future.channel().closeFuture().sync();

0 commit comments

Comments
 (0)