Skip to content

Commit

Permalink
CB-5758 limit FF drivers files access (#58)
Browse files Browse the repository at this point in the history
* CB-5758 limit FF drivers files access

* CB-5758 review fix

* CB-5758 review fix

---------

Co-authored-by: Evgenia <[email protected]>
  • Loading branch information
alexander-skoblikov and EvgeniaBzzz authored Nov 12, 2024
1 parent b8b141d commit b5c1f30
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/org.jkiss.utils/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Bundle-Release-Date: 20240205
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Bundle: com.google.gson
Export-Package: org.jkiss.api,
org.jkiss.api.verification,
org.jkiss.code,
org.jkiss.utils,
org.jkiss.utils.csv,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* Object with contextual information
*/
public interface ObjectWithContextParameters {

@NotNull
Map<String, Object> getObjectContextParameters();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.api.verification;

import org.jkiss.code.NotNull;

import java.nio.file.Path;

public interface FileSystemAccessVerifyer {
/**
* @param path - the path the object is trying to access
* @return true if access is allowed
*/
boolean isPathReadAllowed(@NotNull Path path);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.api.verification;

public interface ObjectWithVerification {
String CONTEXT_PARAMETER_FILE_SYSTEM_VERIFIER = "fs.verifier";

}

0 comments on commit b5c1f30

Please sign in to comment.